An expression tree is created using?

Category: QuestionsAn expression tree is created using?
Editor">Editor Staff asked 4 weeks ago

An expression tree is created using?
 
(a) postfix expression
 
(b) prefix expression
 
(c) infix expression
 
(d) paranthesized expression
 
This is a very interesting question from Trees in portion Trees of Data Structures & Algorithms I
 
This question was posed to me in an interview for internship.

1 Answers
Editor">Editor Staff answered 4 weeks ago

The correct choice is (a) postfix expression
 
For explanation: A postfix expression is converted into an expression tree by reading one symbol at a time and constructing a tree respectively.