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

Is there a new/delete equivalent of realloc?

Answer Posted / rohit sah

No. It would have a number of difficult problems. Some of these are:
- Should the old instances in the memory be deleted and re-instantiated?
- How about contained classes?
- How about instances owned by the classes to be reallocated? These often have a pointer to their owner.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1101


What are references in c++? What is a local reference?

1109


Define Virtual function in C++.

1151


What is an adjust field format flag?

1183


What are the various compound assignment operators in c++?

1029


What is a base class?

1177


Please explain the reference variable in c++?

1130


What is #include cmath?

1144


What is c++ and its uses?

1297


What is called array?

1150


What is the main use of c++?

1169


Is swift a good first language?

1093


Can you use the function fprintf() to display the output on the screen?

1296


What is the role of static keyword for a class member variable?

1114


What is prototype for that c string function?

1193