xxxxxxxxxx
An Exclusive OR gate is a digital logic gate that gives a true(1) output when the numbers of true inputs is odd. A true output result occurs if one – and only one – of the gate’s inputs is true. If both inputs are false(0) or both inputs are true, the output is false.
XOR GATE
xxxxxxxxxx
xor gate (a.k.a exclusive or)
0 0 = 0
1 0 = 1
0 1 = 1
1 1 = 0
so if both of the input are the same the output will be false
if both of the input are different the output will be a true
(get it cuz of the name is an exclusive or and it will not accept input like an and gate does)