How many PUSH and POP operations will be needed to evaluate the following expression by reverse polish notation in a stack machine (A * B) + (C * D/E) ?
A. 4 PUSH and 3 POP instructions
B. 5 PUSH and 4 POP instructions
C. 6 PUSH and 2 POP instructions
D. 5 PUSH and 3 POP instructions
Answer:B
How many PUSH and POP operations will be needed to evaluate the following expression by reverse polish notation in a stack machine (A * B) + (C * D/E) ?
A. 4 PUSH and 3 POP instructions B. 5 PUSH and 4 POP instructions C. 6 PUSH and 2 POP instructions D. 5 PUSH and 3 POP instructions