Do you think the following code is fine? If not, what is the problem?
Page 1 of 1
Do you think the following code is fine? If not, what is the problem?
T *p = 0;
delete p;
No, the code has a problem. The program will crash in an attempt to delete a null pointer.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|