XOR
How it works ?
A
B
Result
1010 ^ 01 = 1010 ^ 0001 = 1011Properties
Commutative : A β B = B β A
Associative : A β B β C = A β (B β C) = (A β B) β C
Identity : A β 0 = A
Self-Inverse : A β A = 0Python
Resources
Last updated