Standard extensions

steve at zinfandel.UUCP steve at zinfandel.UUCP
Sat Dec 15 10:21:00 AEST 1984

Sorry I'm a little late into this discussion, but my favorite
way of saying logical_XOR(a,b) in C is:


Note that the value returned is either zero or non-zero as
opposed to zero or 1, so is good only when you want the expression
to be evaluated for as zero or non-zero (as in an if or while).

Steve Nelson

More information about the Comp.lang.c mailing list