Associativity of Operators


If operand has operators on both side then by connection, operand should be associated with the operator on the left.

In most programming languages arithmetic operators like addition, subtraction, multiplication, and division are left associative.

figure 24 on pg. 31

In the C programming language the assignment operator, =, is right associative. That is, token string a = b = c should be treated as a = (b = c).

Figure