Professional Documents
Culture Documents
A + B.
Operator Priorities:
?(conditional operator)- Highest priority(3).
*/ - second heightest
+- - least priority
Rules:
(1). Whenever u find open bracket ( push into the stack, and when close bracket
occurs ) pop from the stack.
(2). When the operator with high precidence occurs push it over the operator of low
precidence.
(3). If the operator of low precidence occur then pop the opearator of high
precidence and push the low.
(5), if no bracket is found then give the bracket using BODMAS rule.