= #define EOF -1 void push (int); /* push the argument on the stack */ int pop (void); /* pop the top of the stack */ void flagError(); int main() { int c, m, n, r; while ((c getchar ()) != EOF) { if (isdigit (c)) push (cus (ch else if ((c '+') || (o == '*')). { m = pop(); n = pop(); r = (c == '+') ? n + m : n*m; c push (r); } else if (c != '') flagError (); = } printf("%c", pop());
Answers
Answered by
0
Answer:
sorry bro i xont understand
Similar questions
Social Sciences,
2 days ago
English,
2 days ago
English,
5 days ago
English,
5 days ago
Hindi,
8 months ago
Social Sciences,
8 months ago