Examveda

A stake machine pushes operands on a stack and evaluates binary operators by a pcs (i.e pop/compute/store) where the top two operands are popped computation is performed and the result is pushed onto stack. Evaluation of an expression (x*y)+ (u*v) by Reverse Polish notation in a stack machine needs

A. 4 push and 3 pcs instruction

B. 6 push and 1 pcs instruction

C. 4 push and 1 pcs instruction

D. 5 push and 2 pcs instruction

Answer: Option A


Join The Discussion

Related Questions on Microprocessors and Microcontrollers