Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / sekhar

free takes the pointer variable as argument. The intial
data at that location holds a value of number of bytes that
pointer is pointing to. Based on that information, it frees
the memory.

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why shouldn’t I start variable names with underscores?

1046


What is data structure in c programming?

1062


write a program to display all prime numbers

1950


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1849


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1902


In c programming language, how many parameters can be passed to a function ?

1099


What is structure padding in c?

1114


Explain what is wrong with this program statement?

1106


Explain how do you determine the length of a string value that was stored in a variable?

1143


Why #include is used in c language?

1029


What are the two forms of #include directive?

1146


Explain what happens if you free a pointer twice?

1063


What is an identifier?

1013


how do you execute a c program in unix.

1099


Explain about the functions strcat() and strcmp()?

1033