# XOR Operation ## Logical XOR \( A \) \( B \) \( A \oplus B \) \( 0 \) \( 0 \) \( 0 \) \( 0 \) \( 1 \) \( 1 \) \( 1 \) \( 0 \) \( 1 \) \( 1 \) \( 1 \) \( 0 \) ## Notes * \( A \oplus B \) equals \( 1 \) if and only if \( A \) and \( B \) are different. * \( A \oplus B \) inverts the value of \( A \) if and only if \( B = 1 \). ## Bitwise XOR ``` 1010 1100 ---- 0110 ```