Computer Science EngineeringHard

The postfix form of the infix expression a + b * c - d is

  1. A. ab+c*d-
  2. B. abc+*d-
  3. C. a+bc*d-
  4. D. abc*+d-

Correct answer: D. abc*+d-

Multiplication binds tighter, giving bc*, then a+ and finally subtracting d left to right.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic