XOR
is short for exclusive or. It is a logical, binary operator that requires that one of the two operands be true but not both.
So these statements are true:
TRUE XOR FALSE FALSE XOR TRUE
And these statements are false:
FALSE XOR FALSE TRUE XOR TRUE
There really isn’t such a thing as an”exclusive and” (or XAND
) since in theory it would have the same exact requirements as XOR
. There also isn’t an XNOT
since NOT
is a unary operator that negates its single operand (basically it just flips a boolean value to its opposite) and as such it cannot support any notion of exclusivity.
Related Posts:
- What exactly does += do in python?
- Use of “instanceof” in Java [duplicate]
- ^=, -= and += symbols in Python
- What does the question mark character (‘?’) mean in C++?
- proper name for python * operator?
- What does the question mark character (‘?’) mean in C++?
- What does the percentage sign mean in Python
- Not equal to != and !== in PHP
- What does the percentage sign mean in Python
- What does =~ do in Perl?
- Difference between “or” and || in Ruby?
- Difference between “and” and && in Ruby?
- Does Python have a ternary conditional operator?
- Which equals operator (== vs ===) should be used in JavaScript comparisons?
- How is the AND/OR operator represented as in Regular Expressions?
- Behaviour of increment and decrement operators in Python
- Is there a “not equal” operator in Python?
- What is the result of % in Python?
- Does Python have a ternary conditional operator?
- Is there a “not equal” operator in Python?
- What does the “+=” operator do in Java?
- What does the ^ (XOR) operator do? [duplicate]
- What do these operators mean (** , ^ , %, //)? [closed]
- What do these operators mean (** , ^ , %, //)? [closed]
- What does operator “dot” (.) mean?
- What does ‘&’ do in a C++ declaration?
- Creating a “logical exclusive or” operator in Java
- What does “|=” mean? (pipe equal operator)
- What are bitwise shift (bit-shift) operators and how do they work?
- assignment operator overloading in c++
- How to use operator ‘-replace’ in PowerShell to replace strings of texts with special characters and replace successfully
- Error: “expression must have integral or unscoped enum type” [duplicate]
- PowerShell and the -contains operator
- Logical XOR operator in C++?
- Regex how to match an optional character
- proper name for python * operator?
- What does the power operator (**) in python translate into?
- Difference between the == and %in% operators in R
- what is the meaning of == sign?
- The difference between += and =+
- PowerShell and the -contains operator
- What is the ‘new’ keyword in JavaScript?
- Regex how to match an optional character
- Reference — What does this symbol mean in PHP?
- What does question mark and dot operator ?. mean in C# 6.0?
- What is the idiomatic Go equivalent of C’s ternary operator?
- The tilde operator in Python
- What does `<>` mean in Python?
- What is ‘\0’ in C++?
- What is a Question Mark “?” and Colon “:” Operator Used for?
- What is the difference between ‘/’ and ‘//’ when used for division?
- ruby operator “=~” [duplicate]
- What does << mean in Ruby?
- error: ‘ostream’ does not name a type
- What does the colon (:) operator do?
- Is there an exponent operator in C#?
- What does ||= (or-equals) mean in Ruby?
- Multiple OR or AND conditions in IF statement
- Understanding the result of modulo operator: %%
- Is there a difference between x++ and ++x in java?
- Reference — What does this symbol mean in PHP?
- R: += (plus equals) and ++ (plus plus) equivalent from c++/c#/java, etc.?
- What does “+=” (plus equals) mean?
- Javascript: operator overloading
- Is there a “not in” operator in JavaScript for checking object properties?
- Class template inheritance C++
- How to use greater than operator with date?
- Using the AND and NOT Operator in Python [duplicate]
- Java Not Greater than Or Equal to Operator for Char Type
- What’s the difference between “mod” and “remainder”?
- What is the difference between the dot (.) operator and -> in C++?
- Python a &= b meaning?
- What are the double colons (::) in R?
- Using OR operator in a jQuery if statement
- OCaml mod function returns different result compared with %
- The tilde operator in C
- Prolog “or” operator, query