C history question

Norman Diamond diamond at csl.sony.co.jp
Thu Sep 14 13:25:39 AEST 1989


In article <575 at calmasd.Prime.COM> wlp at calmasd.Prime.COM (Walter Peterson) writes:

>C has bitwise operators for AND (&), OR (|) and XOR (^) and boolean 
>operator for AND (&&) and OR (||), but not for XOR (^^). Why?

In A && B, if A is false (0) then B is not evaluated.
In A || B, if A is true (non-0) then B is not evaluated.
In A ^^ B, for which value(s) of A do you skip B?

--
-- 
Norman Diamond, Sony Corporation (diamond at ws.sony.junet)
  The above opinions are inherited by your machine's init process (pid 1),
  after being disowned and orphaned.  However, if you see this at Waterloo or
  Anterior, then their administrators must have approved of these opinions.



More information about the Comp.lang.c mailing list