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

Explain logical errors? Compare with syntax errors.

633


What are bitwise shift operators in c programming?

650


differentiate built-in functions and user – defined functions.

636


What are structural members?

576


Explain what is the best way to comment out a section of code that contains comments?

724






i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1848


will u please send me the placement papers to my mail???????????????????

1367


Write the syntax and purpose of a switch statement in C.

631


Why c is called free form language?

575


What are formal parameters?

664


Why clrscr is used in c?

591


What is the difference between array_name and &array_name?

783


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1473


write a program to generate address labels using structures?

4012


What is the use of function in c?

715