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 |
Explain the difference between 'operator new' and the 'new' operator?
What is set in c++?
What is iterator in c++?
Why struct is used in c++?
Explain what is class definition in c++ ?
What is buffer and example?
What is difference between rand () and srand ()?
What is the Maximum Size that an Array can hold?
55 Answers Adobe, FutureSoft, HCL, Infosys, Satyam, TCS, Wipro,
What is c++ iterator?
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().
Explain stack & heap objects?
Comment on c++ standard exceptions?