When
an expression contains two operators of same precedence the tie between
them is settled using the associativity of operators.
Types of Associativity
- Left to Right
- Right to Left
Left to Right means that the left operand must be unambiguous(it must not be involved in any other sub-expression).
Right to Left means that the right operand must not be unambiguous.
Examples:
- 5/3*6
- i=j=6
0 comments:
Post a Comment
Hey this is a test comment