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 / sourisengupta

free(ptr);

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. According to the information, it
frees
the memory.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a header file whether functions are declared or defined?

1134


Is printf a keyword?

1210


What is the use of function overloading in C?

1185


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1196


What is advantage of pointer in c?

1198


Why doesnt that code work?

1196


Can we change the value of constant variable in c?

1067


When is the “void” keyword used in a function?

1514


What is the difference between malloc() and calloc() function in c language?

1093


What are inbuilt functions in c?

1041


how many errors in c explain deply

2099


Why do we need volatile in c?

1189


Explain what are compound statements?

1070


Write a program to generate the Fibinocci Series

1252


Why c is procedure oriented?

1085