What happens if the following C++ statement is compiled and executed?

int *ptr = NULL;
delete ptr;


Posted on by