null pointers of various types.

Blair P. Houghton bph at buengc.BU.EDU
Tue Mar 28 03:40:29 AEST 1989


In article <7672 at june.cs.washington.edu> pardo at cs.washington.edu (David Keppel) writes:
>I recently made the following assertions about pANSI C.
>Are they correct?
>
>* The number zero (0) compares equal with any null pointer of any type.
>* Null pointers of two types do not necessarily compare equal.

If this is true, how long will it be until someone accidentally uses
this fact to prove that one can violate the first and second laws of
thermodynamics?

				--Blair
				  "...since the zeroth is apparently
				   conditional on data typing..."



More information about the Comp.std.c mailing list