C++ New And Delete Question:

Explain realloc()?

Tweet Share WhatsApp

Answer:

An existing block of memory which was allocated by malloc() subroutine, will be freed by free() subroutine. In case , an invalid pointer parameter is passed, unexpected results will occur. If the parameter is a null pointer, then no action will occur.

Download C++ New And Delete PDF Read All 33 C++ New And Delete Questions
Previous QuestionNext Question
Can you please explain the difference between new and malloc and delete and free()Explain the difference between realloc() and free()?