+1 vote
in Data Structures & Algorithms I by (110k points)
What determines the order of evaluation of a prefix expression?

(a) precedence and associativity

(b) precedence only

(c) associativity only

(d) depends on the parser

Question is taken from Application of Stacks topic in section Application of Stacks of Data Structures & Algorithms I

This question was posed to me in an online quiz.

1 Answer

+1 vote
by (408k points)
selected by
 
Best 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.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...