Thread: xor and class?
View Single Post
  #2  
Old 01-30-2013, 11:25 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
xor, usually the ^ operator in other languages, is bitwise exclusive or. Compares the two inputs bit by bit, bit output is 1 if one bit is 1 and the other is 0, otherwise 0.

For example: 3 xor 5 == 6
Because:
3 == 011
5 == 101
6 == 110


Not sure if the class keyword is actually being used.
Reply With Quote