java - Why in the XOR exclusive operator does 1 and 1 =0? -
simple answer, because defined way. if need functionality of or or and can have that, xor this.
it's sort of quintessential computer science operator, better used it. =)
philosophically, it's exclusive or. expect or when 1 of inputs 1, requires not both of them 1 @ same time, hence name exclusive.

Comments
Post a Comment