Boolean Operators Slighted in C

Tom Stockfisch tps at sdchem.UUCP
Sat May 3 08:32:26 AEST 1986


In article <778 at bentley.UUCP> kwh at bentley.UUCP writes:
>In article <838 at ihwpt.UUCP> ihwpt!knudsen writes:
>>(2) There isn't any ^^ (XOR) operator either, as in
>
>There is, but it's spelled "!=".  (Presumably more efficient than "^", though
>I think either one should work with a smart compiler.)
>

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

-- Tom Stockfisch, UCSD Chemistry



More information about the Comp.lang.c mailing list