free() function in dynamic memory allocation - C-Tutorial

Latest

Tuesday, 4 October 2016

free() function in dynamic memory allocation

free():  

The memory allocation done by malloc(), calloc() and realloc() functions at run time are released by invoking the function free() by the user explicitly.  The releasing of storage space becomes very important when the storage is space is limited.  The general form of free() function is:

            Syntax:           free(ptrvariable);


No comments:

Post a Comment