Function used to free the memory allocated by calloc() - free();

Q.  C programming:  What function should be used to free the memory allocated by calloc() ?
- Published on 25 Jun 15

a. dealloc();
b. malloc(variable_name, 0)
c. free();
d. memalloc(variable_name, 0)

ANSWER: free();
 
The free() function deallocates the memory which was previously allocated by the call to alloc, malloc or calloc
 

    Discussion

  • chandrajit yadav   -Posted on 29 Nov 20
    nice

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)