Monday, March 3, 2008

How to use Operators in C#?

_____________________________________________

How to use Operators in C# ?

_____________________________________________

Comparison
== < > <= >= !=

Arithmetic
+ - * /
% (mod)
/ (integer division if both operands are ints)
Math.Pow(x, y)

Assignment
= += -= *= /= %= &= |= ^= <<= >>= ++ --


____________________________________________________________________

Note:Applicable for .net also asp.net.
____________________________________________________________________

No comments: