A special site for solving fun programming problems and challenges, interested in computer science, programming, basics, data structure and algorithms


 Today we will write a program to calculate the value of a postfix expression using stacks in C++.

A postfix notation is where the operators are placed after the operands in the expression.

Postfix form: <operand> <operand> <operator>.

Example:    

Infix form:      A+B*C-D 

Postfix form:  AB+CD-*

source code:

https://onlinegdb.com/x7hHXBAmo

for support me in patreon:

link patreon: https://www.patreon.com/code12hub

        

No comments:

Post a Comment