#include #include int main(void) { int num_elements = 5; int my_data[10] = {1, 2, 3, 4, 5...} // allocating 5 * 8 bytes on the heap // returns the address of the heap where the alloc was int *data = malloc(num_elements * sizeof(int)); num_elements += 40; data = realloc(data, num_elements * sizeof(int)); // free(data); }