What is operator precedence in C#?

 Posted by Goud.Kv on 9/3/2014 | Category: C# Interview questions | Views: 1973 | Points: 40
Answer:

precedence explains the order of evaluation of an expression that has multiple operators. The operator with higher precedence will get the higher priority.

For example,
10 + 2 * 5
In the above code, priority is given to the '*' operator because of its higher precedence (BODMAS rule).


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response