C++ New And Delete Question:
Explain realloc()?

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 Question | Next Question |
Can you please explain the difference between new and malloc and delete and free() | Explain the difference between realloc() and free()? |