Q. What happens if the following C++ statement is compiled and executed?
Code:int *ptr = NULL; delete ptr;
β
Correct Answer: (D)
The program is compiled and executed successfully
int *ptr = NULL; delete ptr;
You must be Logged in to update hint/solution