I\'m inclined to write if statements by using logical negation operator:
if (!p) some_code();
Some people around me tend to use explicit co
With if (0 == p) you force the comparison to enter that "if scope" in that case. I mean, it will be clear that you want to do that in case p is equals 0. By just using (!p) its not explicit what you want to know. It could be null, false, etc.
if (0 == p)
p is equals 0
(!p)
null, false