Precedence of operators in RPN
While calculating postfix expression in C, if our token is an operator we
have to place it the stack in such a way that it's has the highest
priority.
My question is among the * / % operators which has the highest priority.
Do we need to consider associativity as well ? Since all these operators
have LEFT-TO-RIGHT associativity, will / get higher preference over * ???
No comments:
Post a Comment