**New course!**Every coder should learn

**Generative AI!**

+ 1

# Can anyone explain Operator precedence deeply?

6 Answers

+ 2

In that example the program will solve the problem in the brackets first then the ones containing the division then the multiplication followed by the addition, subtraction and the modulus

+ 1

These are how the program executes arithmetic operations, it's just which ones will be calculated before the rest, Bracet ( has the highest, it follows BEDMAD principle for that although there 're some additions to that like the tenary operator and ::

+ 1

I didn't understand it properly

+ 1

Just look at it like how the program does arithmetic operations, how it will handle complex arithmetic like 2*5+3(38+36)/3737%6 it would use operator precedence to solve such statement

+ 1

ok tell me the solution akso

+ 1

ok