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

Will the following program execute?

991


What is abstract class in c++?

985


What is oops in c++?

996


What size is allocated to the union variable?

1006


What is an operator function? Describe the function of an operator function?

1065


What is a Default constructor?

1499


By using c++ with an example describe linked list?

979


What is #include cstdlib in c++?

1139


What is the function of I/O library in C++ ?

1116


what are Operators and explain with an example?

1119


Is it possible to use a new for the reallocation of pointers ?

990


Why struct is used in c++?

1066


List different attributes in C++?

1015


what is data abstraction in C++?

1028


What is operator overloading in c++ example?

1049