Advertisements
Advertisements
Question
How many traversal from left to right is enough to evaluate the prefix/postfix expression?
Options
Single
Double
None
Three
MCQ
Advertisements
Solution
Single
Explanation:
Because the operators are correctly positioned according to their order of precedence, only one traversal is necessary to evaluate a prefix or postfix expression.
shaalaa.com
Evaluation of Postfix Expression
Is there an error in this question or solution?
