Math Fundamentals18 sections · 814 units
Open in Course

XOR Truth Table

Different inputs

For XOR with inputs AA and BB:


A     | B     | A XOR B
----- | ----- | -------
false | false | false
false | true  | true
true  | false | true
true  | true  | false

Notice the pattern: XOR is true when inputs differ, false when they match. This makes XOR perfect for detecting changes or checking inequality.