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() ?
Discussion:
22 comments Page 1 of 3.
Wahid sayed said:
1 decade ago
Why is it free() ?
Can anyone explain me.
Can anyone explain me.
Vamshikrishna adepu said:
1 decade ago
We doesn't functions like dealloc() in "C" and the remaining options are to allocate memory so may the answer is free().
Rahul said:
1 decade ago
There are only 3 memory allocation functions in C calloc(),malloc() and free(). free is to free that allocated space
Anil kumar said:
1 decade ago
free() is one of the predefined function its free memory ...
only one function is there in c language to free memory....
only one function is there in c language to free memory....
Hari naidu said:
1 decade ago
free() function is used to remove the allocated memory.
Venkat said:
1 decade ago
Mainly free() function is used for allocating free memory for malloc() and calloc().
Amrendra said:
1 decade ago
The free(var-name) is only function in c to deallocate memory.
Pokar sanjay said:
1 decade ago
How is different between malloc() and calloc() what is function of both? How it work?
Krishna said:
1 decade ago
Both allocate storage memory but the difference is malloc process single argument so just specify storage space while calloc process double argument so specify no. Of variable and space needed for that variable.
Sri said:
1 decade ago
What are the functions of malloc and calloc?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers