Answer Posted / vrushali
Whenever we call malloc() for allocating memory. The value
of the starting address is stored in a virtual memory tables.
So whenever free() is called then using the starting memory
location free () will have an entry of the bytes allocated
and to be freed. It can do it using this entry then entry is
deleted also.
This is pure OS concept.
Please reply here if you are not able to understand my answer.
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Where define directive used?
Is c procedural or object oriented?
Write a C program to count the number of email on text
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
write a program to print data of 5 five students with structures?
What is function in c with example?
What is meant by realloc()?
What is the process of writing the null pointer?
How can you find the exact size of a data type in c?
What are the types of assignment statements?
Explain what is wrong with this program statement?
Is it cc or c in a letter?
How can I open a file so that other programs can update it at the same time?
What are Macros? What are its advantages and disadvantages?