What function should be used to release allocated memory which is no longer needed?

Options
- free()
- dealloc()
- release()
- dropmem()
- unalloc()


CORRECT ANSWER : free()

Discussion Board
free()-

free() function is used to release the memory which is dynamically reserved for blocks & which is no longer needed.

Syntax: void free(void *block);

It releases the block of specified pointer.

Sapna 02-16-2017 01:27 AM

Shortcut methode for doing study

Mast hai re deva

Avinash aherwar 09-30-2015 11:19 AM

free()

-free() function releases the memory pointed to by ptr.
- This memory should have been allocated with malloc(), calloc(), or realloc().

Aparna 07-5-2013 08:09 AM

Write your comments


Enter the code shown above:

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


Advertisement