0
free(ptr); Even though we are just proving ptr, How it assumes exact size of memory allocated first to be freed?
How exactly it deletes whole allocated structure ?
1 Réponse
0
During malloc, some of the storage grabbed is used internally to maintain system depended information including the size before handing the rest of it back as the function return.