Wednesday, November 5, 2014

What is XOR(^) operator in C#

A XOR B shows that it outputs true whenever the inputs differ

Sometimes, it is so easy to find a solution when you are back to basics.

References:
http://msdn.microsoft.com/en-us/library/zkacc7k1.aspx
http://en.wikipedia.org/wiki/Exclusive_or#Relation_to_modern_algebra

No comments:

Post a Comment