Is the behavior of subtracting two NULL pointers defined?
In C99, it’s technically undefined behavior. C99 ยง6.5.6 says: 7) For the purposes of these operators, a pointer to an object that is not an element of an array behaves the same as a pointer to the first element of an array of length one with the type of the object as its element type. … Read more