
Memory re-allocation
Question: Is there a standard method/operator in C++ analogous to standard C’s realloc() function that enables resizing of dynamic memory allocated by new operator? Answer: There is no standard call defined in C++ to reallocate memory once it has beencreated using new. The easiest way of doing it is to