I am working on postfix calculator to read operators arithmetic operators. An example input is 24 5 6 * +
.
This code read *
and /
operators but not read +
and -
operators:
while(scanf("%d",&temp))
ARRAY[i]=temp;
scanf("%s",&operator);