what are the various memory handling mechanisms in C ?

Answer Posted / venkatesh kr

In C Language we can use the malloc, calloc & ralloc for memory handling but if we use the above function we should free the memory when the memory is not required.It can be done by "free" function. And also one important point is, suppose if we allocate a memory for an structure and in the process time if the structure is not required the it should be removed by using the "free" function because the system or process will be get crashed on some situations.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between the expression '++a' and 'a++'?

627


Can we access array using pointer in c language?

647


What 'lex' does?

719


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1866


Why do we use return in c?

570






Why do we use main function?

638


What is the return type of sizeof?

596


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

674


Explain two-dimensional array.

631


What are the functions to open and close file in c language?

730


What are two dimensional arrays alternatively called as?

661


Explain what is wrong in this statement?

635


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

876


What is nested structure in c?

614


Explain how can I avoid the abort, retry, fail messages?

592