The order in which the operators of same precedence are evaluated is called Operator associativity. It tells the compiler that if some operators of same precedence level are there then how the expression is evaluated (from left - to - right or right - to -left).
Operator Associativity Table
Consider the expression: 5+6-9-2+7. In this expression , plus and minus operators have same precedence level. Here, operators associativity rule (described in row no. 4 of the table ) is used to evaluate this expression.it es evaluated as follows:
so 7 will be the answer of expression.
for more Explanation
visit this link: