++a*bc*+defg is an?

Category: Questions++a*bc*+defg is an?
Editor">Editor Staff asked 1 month ago

++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 Answers
Editor">Editor Staff answered 1 month ago

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.