Thursday, 31 July 2014

Operators in C#.Net

In this article i would like to share an information related to "Operators in C#.Net"

SNO Operator Names Operators List
1 Primary x.y, f(x), a[x], x++, x--, new, typeof, checked, unchecked
2 Unary +, -, !, ~, ++x, --x, (T)x
3 Arithmetic — Multiplicative *, /, %
4 Arithmetic — Additive +, -
5 Shift <<, >>
6 Relational and type testing <, >, <=, >=, is, as
7 Equality ==, !=
8 Logical, in order of precedence &, ^, |
9 Conditional, in order of precedence &&, ||, ?:
10 Assignment =, +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=

No comments :

Post a Comment