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

What is object in oop with example?

1179


What is abstraction in oop with example?

1064


What is variable example?

983


Why is object oriented programming so hard?

1027


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2552


Get me a number puzzle game-program

2183


what are the realtime excercises in C++?

2786


What is the difference between a constructor and a destructor?

1176


Why multiple inheritance is not allowed?

1081


Explain virtual inheritance?

1129


Are polymorphisms mutations?

1110


Why do we use encapsulation in oops?

973


What are the components of marker interface?

998


What is the significance of classes in oop?

1061


Write a program to reverse a string using recursive function?

2278