Multiple choice

The expression has to be evaluated right -to-left or left -to-right depends on the operators____

  1. precedence

  2. associativity

  3. directionality

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Operator precedence determines which operators bind tighter to their operands. Associativity determines the evaluation order when operators have the same precedence level - whether left-to-right or right-to-left. Right-to-left associativity applies to operators like assignment and ternary.