Close sidebar

Reallocation of pointers in C++

Is it possible to use a 'new' for the reallocation of pointers?

Your Answer

The new operator denotes a request for memory allocation on the Heap. If sufficient memory is available, new operator initializes the memory and returns the address of the newly allocated and initialized memory to the pointer variable.

-1
Comment
Practice Mock Test
c plus plus programming