C++ | new and delete | Question 4
What happens when delete is used for a NULL pointer?
(A) Compiler Error
(B) Run-time Crash
(C) No Effect
Explanation: Deleting a null pointer has no effect, so it is not necessary to check for a null pointer before calling delete.
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...