Evaluate the following postfix notation of expression. Show status of the stack after every operation.
84, 62, –, 14, 3, *, +
Stack status of every operation is given below:
Element | Stack |
84 | 84 |
62 | 84,62 |
- | 22 |
14 | 22,14 |
3 | 22, 14, 3 |
* | 22, 42 |
+ | 64 |