truth table for a oplus b code example Example: XOR 0 | 0 | 0 0 | 1 | 1 1 | 0 | 1 1 | 1 | 0 ONLY ONE CAN BE TRUE