Null revisited (briefly)

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Mar 3 00:55:05 AEST 1989


In article <5984 at bsu-cs.UUCP> dhesi at bsu-cs.UUCP (Rahul Dhesi) writes:
-In article <1095 at auspex.UUCP> guy at auspex.UUCP (Guy Harris) writes:
->Wrong.  '\0' *is* the same as 0.
-Isn't it possible to postulate the existence of a bizarre 1's
-complement machine in which the lexical analyzer produces
-binary 00000000000000000000000000000000 when it sees the
-character 0, but 11111111111111111111111111111111 when it
-sees the sequence '\0'?

Only if all computations made with the -0 value are indistinguishable
from those made with the 0 value.  (This includes bitwise operations!)



More information about the Comp.lang.c mailing list