Answer Posted / vadivel t
Heap memory menager is a person, who is responsible for
dynamic memory allocation. He will maintains a internal
data structure(table) to update the information on free and
allocated memory pools. when memory is allocated using
malloc or calloc, the heap memory manager will update the
table(which tells, no of bytes allocated to a particular
pointer) and returns the base address to the application.
when application calls free() with the pointer to be freed
as a argument, free will look into the table which holds no
of bytes allocated for that pointer. And it will free those
many bytes from the base address. Again the freed memory
shall be added to a free memory pool so that other fellows
who needs memory can utilise it.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How is a macro different from a function?
Differentiate between declaring a variable and defining a variable?
in iso what are the common technological language?
What is the use of a semicolon (;) at the end of every program statement?
how many errors in c explain deply
How does placing some code lines between the comment symbol help in debugging the code?
What are the different types of control structures in programming?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
how could explain about job profile
What is a newline escape sequence?
Explain what is #line used for?
What is double pointer in c?
Can you write a programmer for FACTORIAL using recursion?
Who developed c language?
What does != Mean in c?