1.

How many stacks are required for evaluation of prefix expression?(a) one(b) two(c) three(d) fourThe doubt is from Application of Stacks in section Application of Stacks of Data Structures & Algorithms IThe question was posed to me during a job interview.

Answer»

Correct choice is (B) two

The best EXPLANATION: 2 stacks are required for evaluation of PREFIX EXPRESSION, one for integers and one for characters.



Discussion

No Comment Found

Related InterviewSolutions