1.

From the given expression tree, identify the infix expression, evaluate it and choose the correct result.(a) 5(b) 10(c) 12(d) 16This key question is from Evaluation of an Infix Expression (Not Parenthesized) in division Application of Stacks of Data Structures & Algorithms IThe question was posed to me during an interview.

Answer»

Correct answer is (c) 12

The explanation is: From the GIVEN EXPRESSION TREE, the result of the infix expression is evaluated to be 12.



Discussion

No Comment Found

Related InterviewSolutions