How to: Is it safe to delete a NULL pointer?
How to: Is it safe to delete a NULL pointer?
Is it safe to delete a NULL pointer?
Is it safe to delete a NULL pointer?
And is it a good coding style?
Answer: Is it safe to delete a NULL pointer?
Deleting a null pointer has no effect. It’s not good coding style necessarily because it’s not needed, but it’s not bad either.
If you are searching for good coding practices consider using smart pointers instead so then you don’t need to deleteat…
View On WordPress











