+ 2
Deleting a pointer
When deleting a pointer does it have to be set to "NULL" before the delete?
3 Answers
+ 13
To add to Jamie's answer. We set it to null after deleting the pointer to prevent accidentally referencing the now empty memory location.
+ 1
A pointer is supposed to point to an object.
Settibg it to Nul would be, well, pointless