+1 vote
in Data Structures & Algorithms I by (88.2k points)
++a*bc*+defg is an?

(a) postfix expression

(b) infix expression

(c) prefix expression

(d) invalid expression

The origin of the question is Trees in division Trees of Data Structures & Algorithms I

This question was addressed to me in homework.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
Right choice is (c) prefix expression

The best I can explain: It is a prefix expression obtained from a preorder traversal since it is of the form operator-operand-operand.

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.

Categories

...