1.

Which of the following is an example for a postfix expression?(a) a*b(c+d)(b) abc*+de-+(c) +ab(d) a+b-cMy question comes from Application of Stacks topic in chapter Application of Stacks of Data Structures & Algorithms II have been asked this question by my school principal while I was bunking the class.

Answer»

The CORRECT option is (B) abc*+de-+

For EXPLANATION: abc*+de-+ is a postfix expression. +ab is a PREFIX expression and OTHERS are infix expressions.



Discussion

No Comment Found

Related InterviewSolutions