K
Keith Thompson
Sjouke Burry said:Gentlemen, are you discussing CPLUSPLUS???pete said:malc said:[#3] An integer constant expression with the value 0, or
such an expression cast to type void *, is called a null
pointer constant.No, it doesn't suggest that at all.6.3.2.3 seems to
suggest that uncasted 0 is not a null pointer constant.
Because "zero equals NULL" as far as I know
only applies there.....
No, we're discussing C. In C, an integer constant expression with the
value 0 is a null pointer constant. (This does not imply that a null
pointer has an all-bits-zero representation). See section 5 of the
comp.lang.c FAQ.
(C++ may or may not have different rules.)