Which function should be used to free the memory allocated by calloc()?

Showing Answers 1 - 3 of 3 Answers


free() is a function used to free the memory allocated dynamically ,by both malloc and calloc functions.

free(ptr): ptr is a pointer to a memory block which has already been creeated by malloc or calloc.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions