Q.

What happens when delete is used for a NULL pointer?
int *ptr = NULL;
delete ptr;

A. Compiler Error
B. Run-time Crash
C. No Error
D. None
Answer» C. No Error
2.1k
0
Do you find this helpful?
19

View all MCQs in

CPP Programming

Discussion

No comments yet