Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

Infix To Postfix | Using Stack | With Simple code

Conventional notation is called infix notation. The arithmetic operators appears between two operands. Parentheses are required to specify the order of the operations. For example: a + (b * c). Post fix notation (also, known as reverse Polish notation) eliminates the need for parentheses. There are no precedence rules to learn, and parenthese are never needed. Because of this simplicity, some popular hand-held calculators use postfix notation to avoid the complications of multiple sets of parentheses. The operator is placed directly after the two operands it needs to apply. For example: a b c * +




When the above program is executed, it produces following results --<\b>
OUTPUT NO : - 01







Post a Comment

0 Comments