Multiple choice

The prefix expression for the infix expression a*(b+c)/e-f is

  1. /*+bc-ef

  2. -/*+abcef

  3. -/*a+bcef

  4. None of these

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

To convert a*(b+c)/e-f to prefix: First convert a*(b+c) to *a+bc. Then (*a+bc)/e becomes /*a+bce. Finally, subtract f: -/*a+bcef. Prefix notation places operators before their operands, requiring systematic conversion from innermost parentheses outward.