Make sure that your compiler's warning level is set high enough (/Wall preferably) so that it will catch silly mistakes like:
if (p = 0)
when you really meant
if (p == 0)
so that you don't need to resort to even sillier tricks like:
if (0 == p)
which degrade the readability of your code.