4 ms·
> As he showed, a null pointer cannot point to any object From my reading, he didn't even show that: >> If a null pointer constant is converted to a pointer t
by numeromancer 11y ago
> As he showed, a null pointer cannot point to any object
From my reading, he didn't even show that:
>> If a null pointer constant is converted to a pointer type, the resulting pointer, called a null pointer, is guaranteed to compare unequal to a pointer to any object or function.
So a null pointer could point to an object, it just wouldn't compare equal to any pointer, even itself.
- ben0x539 11y agoNull pointers comparing equal to null pointers is kind of important though.