null pointers of various types.

David Keppel pardo at june.cs.washington.edu
Mon Mar 27 08:01:33 AEST 1989


This is a request for information.

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.
* The bit storage of a null pointer is not necessarily all zeros.
* Null pointers of two types do not necessarily compare equal.
* A null pointer of one type, cast in to another pointer type, will
  always be cast to a null pointer in the destination type.

	;-D on  ( All this, for a bunch of zeros! )  Pardo
-- 
		    pardo at cs.washington.edu
    {rutgers,cornell,ucsd,ubc-cs,tektronix}!uw-beaver!june!pardo



More information about the Comp.std.c mailing list