How do I use the XOR function in c#?
Printable View
How do I use the XOR function in c#?
^ is the XOR operator in C#.
Thank you.
But if ^ is xor, how do you do exponents?
This might help.
Take a look at the Pow method .Quote:
Originally Posted by deranged
System.Math.Pow(10,2) would be the same as 10^2 I guess...:)
Exponenents are not worth an operator. It is a function in most language/library combinations.