How does free() know the size of memory to be deallocated? (C Programming) | GeeksforGeeks

preview_player
Показать описание
Find Complete Code at GeeksforGeeks Article:

This video is contributed by Vishal Gulia

Please Like, Comment and Share the Video among your friends.

Install our Android App:

If you wish, translate into local language and help us reach millions of other geeks:

Follow us on Facebook:

And Twitter:

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

please increase volume and also make captions

usama
Автор

so if free allocate an extra 1 byte, the max value of this byte can be 256, so what happens if I want to free a block bigger then 256?

dsal
Автор

You are correct that one word is mallocked extra but this one word is placed before ptr starts pointing to mallocked 4 byte (in this case).

atulsharma
Автор

please also make videos on c#, java, python, php, javascript and jquery

usama
visit shbcf.ru