Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!buengc!bph From: bph@buengc.BU.EDU (Blair P. Houghton) Newsgroups: comp.std.c Subject: Re: null pointers of various types. Message-ID: <2399@buengc.BU.EDU> Date: 27 Mar 89 17:40:29 GMT References: <7672@june.cs.washington.edu> Reply-To: bph@buengc.bu.edu (Blair P. Houghton) Followup-To: comp.std.c Organization: Boston Univ. Col. of Eng. Lines: 14 In article <7672@june.cs.washington.edu> pardo@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..."