C Programming - Memory Allocation - Discussion

Discussion Forum : Memory Allocation - General Questions (Q.No. 2)
2.
What function should be used to free the memory allocated by calloc() ?
dealloc();
malloc(variable_name, 0)
free();
memalloc(variable_name, 0)
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
22 comments Page 2 of 3.

Venkat said:   1 decade ago
Mainly free() function is used for allocating free memory for malloc() and calloc().

Pandiya raja said:   1 decade ago
@Lijina. What is malloc() and calloc() ?

Can you explain with example program ?
(1)

Vinay said:   1 decade ago
Also Calloc() initialize the allocated memory to zero, while malloc() doesn't.
(2)

Soundaryakumari .b said:   1 decade ago
free() : Releases the specified block of memory back to the system.

Bindu said:   1 decade ago
Memory allocated by malloc and calloc are deallocated by free in C.
(1)

Amrendra said:   1 decade ago
The free(var-name) is only function in c to deallocate memory.

Hari naidu said:   1 decade ago
free() function is used to remove the allocated memory.

Suvrajeetlenka said:   1 decade ago
Can anybody explain what is free() and farfree()?
(1)

Sri said:   1 decade ago
What are the functions of malloc and calloc?

Wahid sayed said:   1 decade ago
Why is it free() ?

Can anyone explain me.


Post your comments here:

Your comments will be displayed after verification.