0
Can someone help in understanding the concept of operator precedence?
Operator Precedence Operator precedence is a very important concept in programming. It is an extension of the mathematical idea of order of operations (multiplication being performed before addition, etc.) to include other operators, such as those in Boolean logic. I'm not able to understand this concept.
3 ответов
+ 3
I remember PEDMAS word for remembering precedence in order of operations
p - parentheses
e - exponents
d - division
m - multiplication
a - addition
s - subtraction
+ 1
the order of operations used throughout mathematics, science, technology and many computer programming language is as follows
1) exponents and roots
2) multiplication and division
3) addition and subtraction
if a mathematical expression is preceded by one binary operator and followed by another, the operator higher on the list should be applied first.
0
Thank you @SR Praveen Kumar