The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. Edsger Dijkstra

Evaluate postfix or RPN

Language Java | Level Intermediate | Category Data structure | August 30, 2015 12:44 pm


Data structure Description

Evaluate postfix (Reverse Polish notation) is a notation in which every operator follows all of its operands. Program to evaluate postfix notation using stack and print the value.


Output

   					 

Postfix : 	234+*6-
Result : 	8

				    

Comments


No comments available!

Please login to add comments.