Design program Infix that will convert the expression from infix notation to post fix notation using Stack operation. Observe hierarchy of operators.

Sample Input/output
Enter infix : 4+6*7-8

Postfix equivalent is 467*+8-

Recommended Answers

All 2 Replies

Can you give me the codes

It won't hurt to try to do a little work for yourself. Might even do you some good. Go on, give it a try.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.