In every real world implementation anyone cares about, it's zero. Also I believe it is defined to compare equal to zero in the standard, but don't quote me on that.
What? If you have a null pointer to a class, and try to reference the member that starts 156 bytes from the start of the class, you’ll deference 0x9c (0 + 156)
cmpxchg8b|1 year ago
chongli|1 year ago
loeg|1 year ago
taspeotis|1 year ago
emmelaich|1 year ago
It's not guaranteed that NULL is 0.
Still, I don't think you'd find a counterexample in the wild these days.