Power of XOR
if (b1 != b2) //XOR
if (b1 == b2) //XNOR
1) Any number xor'd with itself will give zero.
2) Any number xor'd with zero will give the number.
No comments:
Post a Comment