K&R C Programs Exercise 5-10
Exercise 5-10. Write the program expr, which evaluates a reverse Polish expression from the command line, where each operator or operand is a separate argument. For example, expr 2 3 4 + * evaluates 2 * (3+4). The K&R RPN calculator from Chapter 4 reads from stdin. This version reads from argv instead — each …