Problem #3 Write code to implement the expression X-A-B + C * (D * E-F)/(G + H * K) on a 0-address machine. (20 points) Show transcribed image text Problem #3 Write code to implement the expression X-A-B + C * (D * E-F)/(G + H * K) on a 0-address machine. (20 points)
Solution
A 0-address machine is a stack-based computer.
Given Expression:
X=A-B+C*(D*E-F)/(G+H*K)
First, convert the INFIX expression to postfix.
Then PUSH each operand
OR
OR