The first statement refers to the actual address pointed to by some_ptr. If NULL (the value represented by the NULL definition), it is true, otherwise not.
The last statement refers to the contents in the address pointed to by the pointer. Therefore, if you have a point some_ptr for an integer, and that integer matches your null definition, the second condition evaluates to true.
source share