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 public, protected, private in c++?
What happens if an exception is throws from an object's constructor and from object's destructor?
Write about the members that a derived class can add?
What is c++ used for in games?
What is the use of data hiding?
What is the difference between #import and #include in c++?
Can I run c program in turbo c++?
What are the two types of comments, and how do they differ?
Is there any problem with the following: char *a=NULL; char& p = *a;?
Describe Trees using C++ with an example.
write a program that takes two numbers from user that prints the smallest number
What are disadvantages of pointers?