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

free()is a macro used to deallocate memory.
when we need more memory realoc() reallocate memory
according to given size, if there is no memory 4
alocation ,it will free previous allocated memory &
allocate new one using malloc().
ex: int *p = realloc(p,sizeof(p)*2);

Is This Answer Correct ?    15 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can we make game by using c

4152


How can you overcome the diamond problem in inheritance?

1184


• What are the desirable attributes for memory managment?

2236


What does and I oop mean?

1203


Prepare me a program for the animation of train

2478


can inline function declare in private part of class?

4417


what is the sylabus for priliminaries?

2181


What are the types of abstraction?

1080


What are the components of marker interface?

1067


how to get the oracle certification? send me the answer

2162


What is difference between abstraction and encapsulation?

1087


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4154


What is the oops and benefits of oops programming?

976


What are the two different types of polymorphism?

1149


How oops is better than procedural?

1103