Why is there no “logical exclusive or” operator?

C has “bitwise and” (&), “bitwise or” (|), and “bitwise exclusive or” (^) operators. C also has “logical and” (&&) and “logical or” (||) operators. On the other hand, it has no “logical exclusive or” operator (presumably ^^), a decidedly asymmetrical lack. But there are at least a few reasons for its absence:


Last updated 03 Feb 2004 19:21. Copyright © 2004 Ben Pfaff.
May be freely redistributed, but copyright notice must be retained.