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
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is a good way to implement complex numbers in c?
Hai what is the different types of versions and their differences
Is this program statement valid? INT = 10.50;
Why c is called top down?
Explain output of printf("Hello World"-'A'+'B'); ?
Write a program to show the change in position of a cursor using c
What is the 'named constructor idiom'?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
What are the differences between Structures and Arrays?
What is declaration and definition in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
Does c have class?
How variables are declared in c?