XOR Operation - Hsanokklis/2023-2024-Tech-journal GitHub Wiki

The XOR (exclusive or) operation is a binary operation that takes two binary inputs (bits) and produces a binary output. The XOR operation returns true (1) if the number of true inputs is odd, and false(0) if the number of true inputs is even.

Here is the truth table for the XOR operation:

image

In logic gates and digital circuits, XOR gates are often used to perform this operation. If the inputs are different, the XOR gate outputs 1; if the inputs are the same, it outputs 0. The XOR operation has applications in various areas, including computer science, cryptography and information theory.


Link: https://www.loginradius.com/blog/engineering/how-does-bitwise-xor-work/#:~:text=XOR%20is%20a%20bitwise%20operator,)%20else%20true(1).