int *ptr = NULL;
delete ptr;
a) The program is not semantically correct
b) The program is compiled and executed successfully
c) The program gives a compile-time error
d) The program compiled successfully but throws an error during run-time
What happens if the following C++ statement is compiled and executed?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What happens if the following C++ statement is compiled and executed?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!