How does free() know how much memory to release? Ans. There's no standard way. It can vary from compiler to compiler, even from version to version of the same compiler. free(), malloc(), calloc(), and realloc() are functions; as long as they all work the same way, they can work ...
See more
Download the Study24x7 App, so you can connect and collaborate.