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 |
How can a '::' operator be used as unary operator?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
what is data Abstraction? and give example
147 Answers Aaditya Info Solutions, American Express, CMS, College School Exams Tests, Data Entry Operator, First Advantage, Google, HCL, IBM, Infosys, Microsoft, Mind Links, NIIT, Oracle, Pact, QBit Systems, TCS, WAYA, Wipro,
Can user-defined object be declared as static data member of another class?
Which operator can not be overloaded in C++?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
Which ide is best for c++?
Differentiate between the manipulator and setf( ) function?
What is protected inheritance?
What does asterisk mean in c++?
What does override mean in c++?
What are the five types of inheritance in C++?