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

Answer Posted / guest

The malloc/free implementation remembers the size of each
block allocated and returned.

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an array be an Ivalue?

657


What is static volatile in c?

572


Is it fine to write void main () or main () in c?

541


Is file a keyword in c?

495


What is external variable in c?

605






Is printf a keyword?

753


What is the sizeof () a pointer?

543


Which function in C can be used to append a string to another string?

639


How do you convert strings to numbers in C?

703


Is c easy to learn?

552


How can I direct output to the printer?

808


How can I discover how many arguments a function was actually called with?

628


write a program to print data of 5 five students with structures?

1602


Is c a great language, or what?

597


Is it possible to use curly brackets ({}) to enclose single line code in c program?

785