C++ Output Questions/MCQs
1) What happens if the following C++ statement is compiled and executed?
int *ptr = NULL;
delete ptr;
Explanation: The above statement is syntactically and semantically correct as C++ allows the programmer to delete a NULL pointer, therefore, the pr...
shreshtxa.hashnode.dev12 min read