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 can I copy just a portion of a string?
what is the function of pragma directive in c?
Why doesnt this code work?
Why do we write return 0 in c?
What is the size of enum in c?
What are the rules for the identifier?
What is the purpose of the preprocessor directive error?
Is c call by value?
Write the syntax and purpose of a switch statement in C.
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Explain the ternary tree?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is header file in c?
What is array of structure in c programming?
Write a program to check palindrome number in c programming?