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

Can you apply link and association interchangeably?

889


Why we use conio h in c?

894


What is the significance of scope resolution operator?

1124


Explain the difference between strcpy() and memcpy() function?

776


What is the heap?

958


Why is c platform dependent?

807


How can you find the day of the week given the date?

851


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

906


What is the time and space complexities of merge sort and when is it preferred over quick sort?

875


What is stack in c?

829


What is function definition in c?

786


Can you think of a logic behind the game minesweeper.

2218


Explain what are the different data types in c?

950


What is meant by errors and debugging?

865


What is line in c preprocessor?

809