1.

What determines the order of evaluation of a prefix expression?(a) precedence and associativity(b) precedence only(c) associativity only(d) depends on the parserQuestion is taken from Application of Stacks topic in section Application of Stacks of Data Structures & Algorithms IThis question was posed to me in an online quiz.

Answer»

Correct choice is (a) PRECEDENCE and associativity

The BEST I can explain: Precedence is a very important factor in determining the ORDER of evaluation. If two operators have the same precedence, associativity COMES into action.



Discussion

No Comment Found

Related InterviewSolutions