Is there a new/delete equivalent of realloc?



Is there a new/delete equivalent of realloc?..

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

More C++ General Interview Questions

Explain the difference between 'operator new' and the 'new' operator?

1 Answers   Lucent, TCS,


What is set in c++?

0 Answers  


What is iterator in c++?

0 Answers  


Why struct is used in c++?

0 Answers  


Explain what is class definition in c++ ?

0 Answers  






What is buffer and example?

0 Answers  


What is difference between rand () and srand ()?

0 Answers  


What is the Maximum Size that an Array can hold?

55 Answers   Adobe, FutureSoft, HCL, Infosys, Satyam, TCS, Wipro,


What is c++ iterator?

0 Answers  


given the code segment below void main() { cout<<"my no. is"; } question is how can we get the output hai aravind my no. is 99999999999 without editig the main().

2 Answers  


Explain stack & heap objects?

0 Answers  


Comment on c++ standard exceptions?

0 Answers  


Categories