Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Why isn't there a logical XOR operator?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Keith Thompson, post: 1699440"] Other than the URL, there's no mention of the common abbreviation "xor"; there probably should be. Another thing I just noticed: <iso646.h> defines the following macros: and && and_eq &= bitand & bitor | compl ~ not ! not_eq != or || or_eq |= xor ^ xor_eq ^= The "and", "or", and "not" macros refer to the logical operators, but the "xor" macro refers to the bitwise operator. If a logical-xor "^^" operator were added, the asymmetry would be painful. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Why isn't there a logical XOR operator?
Top