Let's say;
char * first, *second;
first=malloc(10 *sizeof(char));
second=malloc(1 00*sizeof(char) );
what would be the difference between first and second other than the
difference in the address.
I mean, when I use free() function to free the memory, how does the
system know how large the block to free?
Where is the information about size stored?
char * first, *second;
first=malloc(10 *sizeof(char));
second=malloc(1 00*sizeof(char) );
what would be the difference between first and second other than the
difference in the address.
I mean, when I use free() function to free the memory, how does the
system know how large the block to free?
Where is the information about size stored?
Comment