Anything wrong with this code?

T*p = 0;
delete p;
Yes, the program will crash in an attempt to delete a null pointer.

0 comments:

Post a Comment

Blogger news