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

What is malloc and calloc?

563


List a few unconditional control statement in c.

552


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3329


Can we add pointers together?

607


What is null pointer constant?

588






What are pointers?

621


What is difference between arrays and pointers?

573


Explain the difference between null pointer and void pointer.

657


What is the difference between fread and fwrite function?

629


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

706


What is function prototype in c language?

605


Explain what is the difference between null and nul?

644


What is a far pointer in c?

588


Explain how do you declare an array that will hold more than 64kb of data?

883


Explain how do you view the path?

643