RosettaCodeData/Task/Arrays/C/arrays-9.c

4 lines
87 B
C

int *array = malloc (sizeof(int) * 20);
....
array = realloc(array, sizeof(int) * 40);