<<< NOT operation     Index     Binary Masks >>>

22. Exclusive OR operation, XOR


  • XOR is a binary logical function.

  • XOR output is 1 if the values of input bits are different, that is, if values of input bits are not equal.

  • The output is zero, it two operands are the same.

  • XOR yields all zeroes, if input patterns are identical.

  •  

    A B XOR(A,B)
    0 0 0
    0 1 1
    1 0 1
    1 1 0

<<< NOT operation     Index     Binary Masks >>>