What will happen if the following C++ statement is compiled and executed? int…
BPSC TRE 2023
What will happen if the following C++ statement is compiled and executed? 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.
More than one of the above
- E.
None of the above
Attempted by 940 students.
Sign up free to check your answer
Sign up freeLoading lesson…

