C++ New And Delete Question:
Download Questions PDF

Explain realloc()?


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 Interview Questions And Answers PDF

Previous QuestionNext Question
Can you please explain the difference between new and malloc and delete and free()Explain the difference between realloc() and free()?