C++ New And Delete Question:
Download Job Interview Questions and Answers PDF
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.
Download C++ New And Delete Interview Questions And Answers
PDF
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()? |