Instead of
Code:
if (ptr)
{
  delete ptr;
  ptr = 0;
}
can I use
Code:
 delete ptr;
 ptr = 0;
Is it true that if delete is called with a null pointer the code will not crash, since delete has internal checks.

---------------------------------------
Why do i want to do this?
The boss wants me to!