Yes it does
Code:
char *temp = realloc( array, 10 * sizeof *array );
This one allocated 10 bytes and makes it as string. which is something similar to array[10]
this one expands that a bit more to
Code:
temp = realloc( array, 20 * sizeof *array );
And for the same array to allocated 20 more bytes to make array[30]. Thats is how it works. relloc stores the original pointer in a locatoin that was 10bytes and then allocated 20bytes and returns a nw pointer to the new memory location. This is how it works
ssharish2005