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















