Maybe this is just obvious to everyone but can someone explain where XOR (or Exclusive-OR) got its name from? What does the word Exclusive really mean? Not that it matters, but its just stuck in my head since morning.
OR:
0 0 0
0 1 1
1 0 1
1 1 1
XOR:
0 0 0
0 1 1
1 0 1
1 1 0
Is it "exclusively 0 for inputs 1,1", "special version of OR" or something else?
It's what children understand as OR
You can have chocolate OR you can have ice cream
But a programmer would regard this as having both!
Q: "Would you like tea or coffee"
Annoying programmer answer = yes
XOR is an "exclusive OR" because it only returns a "true" value of 1 if the two values are exclusive, i.e. they are both different.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With