Top of the Calc.c
/* The interactive calculator simulates a hand-held
calculator. The calculator evaluates expressions
until the user signals halt. An expression
consists of a left operand, an operator, and a right
operand. The left operand is initialized to zero
and is automatically displayed as part of the
prompt for user input. The user inputs the right
operand, an expression that consists of constants
and operators. To halt, the user enters the stop
character '!' as the first operator in the right operand.
int lhs = 0; /* Left-hand side */
char buffer[MaxExp+2]; /* I/O buffer */
static char* ops = "+-*/%!";
This is program calc.c