+1 vote
in Data Structures & Algorithms I by (110k points)
Which of the following is an example for a postfix expression?

(a) a*b(c+d)

(b) abc*+de-+

(c) +ab

(d) a+b-c

My question comes from Application of Stacks topic in chapter Application of Stacks of Data Structures & Algorithms I

I have been asked this question by my school principal while I was bunking the class.

1 Answer

+1 vote
by (444k points)
selected by
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.