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

Is main a keyword in c?

641


What do you mean by recursion in c?

634


Can a variable be both const and volatile?

678


Explain the difference between structs and unions in c?

585


Explain why c is faster than c++?

579






How do I swap bytes?

634


Can we add pointers together?

622


Why does everyone say not to use gets?

612


How do you list files in a directory?

569


What is the difference between printf and scanf in c?

757


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2422


Why do we use static in c?

636


How do I create a directory? How do I remove a directory (and its contents)?

611


What is a 'null pointer assignment' error?

731


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1263