Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
C# Operator Precedence
C# Operator Precedence Multiplication
Operator precedence groups terms in expressions. This affects how the math problem is evaluated. Some operators take higher precedence. Example: Multiplication operator has higher precedence over the addition operator.
The above code will output 10 The Multiplication is the higher precedence 3*2 = 6 Then the Addition 4+6 Equals 10