C programming doubt ?
If I execute the following code, what will happen ?
int *ptr;
ptr = malloc(100);
ptr++;
free(ptr);
Now ptr points to 2nd integer block.
Now if i use free ptr (as shown in code) what will it do ?
Will it free the whole 100 byte memory or something else ?
Please reply....😔