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.

20th Mar 2017, 4:45 AM
Aryan Sinha
Aryan Sinha - avatar
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
20th Mar 2017, 2:15 PM
SR Praveen Kumar
SR Praveen Kumar - avatar
+ 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.
20th Mar 2017, 4:56 AM
SR Praveen Kumar
SR Praveen Kumar - avatar
0
Thank you @SR Praveen Kumar
21st Mar 2017, 5:21 PM
Aryan Sinha
Aryan Sinha - avatar