How does free() know how many bytes to free?

Answer Posted / rpjanaka

Then, is there a way to get out the number of bytes that
heap manager going to free, when I call free() function.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where are the auto variables stored?

628


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2177


Why c is procedure oriented?

578


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1533


Explain the use of 'auto' keyword in c programming?

685






Why do we need a structure?

595


write a program to concatenation the string using switch case?

1564


Why does the call char scanf work?

622


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

909


What are control structures? What are the different types?

602


Why clrscr is used after variable declaration?

1045


Explain what is the difference between text files and binary files?

622


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4908


How do I get a null pointer in my programs?

624


Why should I prototype a function?

644