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

Difference between realloc() and free?

Answer Posted / fathimath fahima j

free :
#include <cstdlib>
Void free (void *ptr);

Free() function returns the memory
Pointed to by ptr to the heap. 

Realloc :
#include<cstdlib>
Void *realloc(void *ptr,size_t size);

The realloc function changes the size of
the previously allocated memory pointed to by ptr to dat specified by size.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can static class have constructor?

1029


What is interface in oop?

1124


What is object in oop with example?

1234


What are the two different types of polymorphism?

1141


What is a null tree?

1134


Can we create object of abstract class?

1088


Write a c++ program to display pass and fail for three student using static member function

3393


What is variable example?

1034


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2194


What causes polymorphism?

1130


What are constructors in oop?

1172


What is the full form of oops?

1182


What is the difference between abstraction and polymorphism?

1091


What are the 3 principles of oop?

1113


What is purpose of inheritance?

1101