C++ New And Delete Question:

Explain realloc()?

C++ New And Delete Interview Question
C++ New And Delete Interview Question

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.


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