Sunday, August 2, 2009

In some C# code I was looking at I saw a "^" character. What does the ^ refer to?

Normally it is raise to a power. 5 squared is 5^2.

In some C# code I was looking at I saw a "^" character. What does the ^ refer to?
Normally this symbol is used for 'to the power of'.


For example 2^3=8





However, you should keep in mind that due to operator overloading in C#, this operator could have been used for literally anything.


No comments:

Post a Comment