What is an XOR gate and where is it used?
What is an XOR gate and where is it used?
Model answer
An XOR gate outputs 1 when its inputs differ; for two inputs, Y = A XOR B. XOR is used in sum bits of adders, parity generation and checking, and equality/comparison logic. XNOR is commonly used to test whether two bits are equal.