What is an XOR gate? Write its truth table.
XOR gate is a logic gate whose output is HIGH only when odd number of inputs are HIGH.
| Input | Output | | --- | --- | | A | B | Y = A + B | | 0 | 0 | 1 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 1 |