a) Write the following expression in postfix (reverse Polish) notation. Remember the rules of precedence for arithmetic

Question:

a) Write the following expression in postfix (reverse Polish) notation. Remember the rules of precedence for arithmetic operators 

X = A-B+CX (D x E-F) G+HxK

b) Write a program to evaluate the above arithmetic statement using a stack- organized computer with zero-address instructions (so only Pop and Push can access memory).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: