On the discussion of dynamic memory here: \"Intro to C Pointers and Dynamic Memory\"
The author states:
A memory block like this can effective
I agree with ocdecio that c89 doesn't allow
int array[variable]
c99 allows some types of variables and expressions to be the array size. But in addition to that, things allocated with malloc and family can be resized using realloc.
malloc
realloc