T*p = 0;
delete p;
Yes, the program will crash in an attempt to delete a null pointer.
delete p;
Yes, the program will crash in an attempt to delete a null pointer.
03:14
AtoZ C++ Interview Questions, AtoZ CPP Objective Type Questions, AtoZ C++ Study Material
No comments
0 comments:
Post a Comment