P

Priyanka Tomar • 35.28K Points
Coach

Q. What happens when delete is used for a NULL pointer?
int *ptr = NULL;
delete ptr;

  • (A) Compiler Error
  • (B) Run-time Crash
  • (C) No Error
  • (D) None
  • Correct Answer - Option(C)
  • Views: 112
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics