The Precedence of the C# Operators : Operator Precedence « Operator « C# / CSharp Tutorial






Highest                              
()  [] .    ++(postfix) --(postfix) checked new sizeof  typeof  unchecked
!   ~   (cast)  +(unary)    -(unary)    ++(prefix)      --(prefix)   
* /     %                            
+ -                                  
<<  >>                           
< > <=  >=is                         
== !=                                
&                                
^                                
|                                
&&                               
||                               
?:                               
= op=                                
Lowest








3.18.Operator Precedence
3.18.1.The Precedence of the C# Operators
3.18.2.Operator precedence, with () and without ()
3.18.3.multiple arithmetic operators
3.18.4.Order of Precedence for Expressions