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...

What is realloc() and free()? What is difference between them?

Answer Posted / hrpynux@gmail.com

The free subroutine frees a block of memory previously allocated by the malloc subroutine. The realloc () function is used to allocate memory and has the following prototype: void * realloc (void * ptr, unsigned int num);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of ios::basefield in the following statement?

1303


Is atoi safe?

1094


Describe the advantage of an external iterator.

1082


Specify different types of decision control statements?

917


What is the difference between a type-specific template friend class and a general template friend class?

1032


What does std :: flush do?

1189


What are friend classes? What are advantages of using friend classes?

1139


What do you mean by late binding?

1202


Why null pointer is used?

1093


When is the copy constructor called?

1201


What is setbase c++?

1204


Can we inherit constructor in c++?

1143


How do you invoke a base member function from a derived class in which you’ve overridden that function?

1169


What are the advantages of using pointers in a program?

1190


Why do we use classes in programming?

1087