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 |
Can inline functions have a recursion? Give the reason?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
What is void pointer in c++ with example?
Write a corrected statement in c++ so that the statement will work properly. x =+ 7;
What is a c++ object?
Why do we need constructors in c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
what is static function
What is a dangling pointer in c++?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What is double in c++?
What does floor mean in c++?