Boolean Operators Slighted in C

peter at baylor.UUCP peter at baylor.UUCP
Sun May 11 05:54:17 AEST 1986


> Not quite the same.
> 	3 ^^ 4
> would evaluate as 0,
> 	3 != 4
> evaluates as 1.

Wrong. Remember:

	3 && 4 = 1

	3 & 4 = 0

^^ was intended by the original poster as a logical operator, not a boolean
one (despite the title of the message).
-- 
-- Peter da Silva
-- UUCP: ...!shell!{baylor,graffiti}!peter; MCI: PDASILVA; CIS: 70216,1076



More information about the Comp.lang.c mailing list