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

(a) (a+b)*(c+d)

(b) ab+c*

(c) +ab

(d) abc+*

The above asked question is from Application of Stacks in section Application of Stacks of Data Structures & Algorithms I

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

1 Answer

+1 vote
by (408k points)
selected by
Best answer
Correct answer is (a) (a+b)*(c+d)

Best explanation: (a+b)*(c+d) is an infix expression. +ab is a prefix expression and ab+c* is a postfix expression.

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.