Hi All,
Assume we have allocated 100 bytes of memory using malloc,
We will get a pointer to the allocated memory, to free up this memory we will pass this pointer to free function. My question is how free will come to know that it needs to free 100 bytes of memory? where it gets this information?
Thanks,
Manjunath
Assume we have allocated 100 bytes of memory using malloc,
We will get a pointer to the allocated memory, to free up this memory we will pass this pointer to free function. My question is how free will come to know that it needs to free 100 bytes of memory? where it gets this information?
Thanks,
Manjunath
Comment