Question: Consider the infix expression 15 + 2 10 / 2 2 and convert this into postfix expression using stack. Next Token Action Effect on operatorStack
- Consider the infix expression 15 + 2 10 / 2 2 and convert this into postfix expression using stack.
| Next Token | Action | Effect on operatorStack | Effect on postfix |
| 15 |
|
|
|
| + |
|
|
|
| 2 |
|
|
|
| - |
|
|
|
| 10 |
|
|
|
| / |
|
|
|
| 2 |
|
|
|
| * |
|
|
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
