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