C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C# operatorsAn operator is simply a symbol that is used to perform operations. There can be many types of operations like arithmetic, logical, bitwise etc. There are following types of operators to perform different types of operations in C# language.
Precedence of Operators in C#The precedence of operator specifies that which operator will be evaluated first and next. The associativity specifies the operators direction to be evaluated, it may be left to right or right to left. Let's understand the precedence by the example given below: int data= 10+ 5*5 The "data" variable will contain 35 because * (multiplicative operator) is evaluated before + (additive operator). The precedence and associativity of C# operators is given below:
Next TopicC# Keywords
|