Which notation places the operator before its operands?

Options

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

Correct Answer (Detailed Explanation is Below)

C. Prefix

Detailed Explanation

Prefix notation, also called Polish notation, places the operator before its operands. For example, the infix expression A + B is written as +AB in prefix notation. Infix notation places the operator between operands, while postfix notation places it after operands. Prefix and postfix expressions avoid the ambiguity of operator precedence that can occur in complex infix expressions and can be evaluated using a stack.