Computer Science, asked by teja5207, 1 year ago

Algorithm to construct infix to postfix expression

Answers

Answered by ayush579
0
▀▄▀▄▀▄[_<b>Hɪ Mᴀᴛᴇ_]▄▀▄▀▄▀



ıllıllıllıllıllıllı[ Your Answer ]ıllıllıllıllıllıllı


╚» Push “(“onto Stack, and add “)” to the end of X.

Scan X from left to right and repeat Step 3 to 6 for each element of X until the Stack is empty.

If an operand is encountered, add it to Y.

If a left parenthesis is encountered, push it onto Stack.

If an operator is encountered ,then:





<b><marquee>


 ▁ ▂ ▄ ▅ ▆ ▇ █ [ Hᴏᴘᴇ Help You Dear ] █ ▇ ▆ ▅ ▄ ▂ ▁
Similar questions