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
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is a void * in c?
What are the standard predefined macros?
How can I prevent another program from modifying part of a file that I am modifying?
What's the best way of making my program efficient?
Explain how can I read and write comma-delimited text?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What are the similarities between c and c++?
What is default value of global variable in c?
Ow can I insert or delete a line (or record) in the middle of a file?
Why we use break in c?
what is recursion in C
Is main is user defined function?
write a program to display all prime numbers
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.