Which notation normally requires operator precedence and parentheses to determine the order of evaluation?

Options

  • A. Infix
  • B. Prefix
  • C. Postfix
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. Infix

Detailed Explanation

Infix notation places operators between operands, such as A + B or A * B. When multiple operators are present, operator precedence and associativity determine the evaluation order. Parentheses can explicitly change that order. For example, multiplication normally has higher precedence than addition. Prefix and postfix notations encode the operation order directly through the position of operators, so parentheses are generally unnecessary when the expression is properly formed.