+ 1

What is the use of free(..) in C .because it generates a code error and removing it everything goes normal?

Use of free()

16th Dec 2020, 1:12 AM
Othmane El karmy
Othmane El karmy - avatar
2 Respostas
+ 3
Using free() Function in C The function free() is used to de-allocate the memory allocated by the functions malloc ( ), calloc ( ), etc, and return it to heap so that it can be used for other purposes. The argument of the function free ( ) is the pointer to the memory which is to be freed.
16th Dec 2020, 1:13 AM
Jordan Kinney
Jordan Kinney - avatar