Precedence of Operators

Precedence and associativity are the two important properties of operators. Precedence is the order in which a program performs / evaluates the operation in a formula. All operators have a precedence value. An operator with higher precedence is evaluated before an operator with a lower precedence value.
When making complex expressions with several operands, we may have some doubts about which operand is evaluated first and which later. For example, in this expression:
a = 5 + 7 % 2 LEARN MORE >>

No comments: