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
How many loops are there in c?
What are the types of unary operators?
What is the most efficient way to count the number of bits which are set in an integer?
What is the difference between procedural and functional programming?
When was c language developed?
What is table lookup in c?
Is c easier than java?
Explain the use of #pragma exit?
what is the different bitween abap and abap-hr?
How can a program be made to print the name of a source file where an error occurs?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What does the message "automatic aggregate intialization is an ansi feature" mean?
What are the functions to open and close file in c language?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What is the right type to use for boolean values in c? Is there a standard type?