I quote from \"The C Programming Language\" by Kernighan & Ritchie:
Any pointer can be meaningfully compared for equality or inequality with zero.
You can do == and != with pointers from different arrays.
==
!=
<, <=, >, >= is not defined.