M

Mr. Dubey • 52.26K Points
Coach

Q. At this point, ‘*’ is encountered. What has to be done?

(A) 5*4=20 is pushed into the stack
(B) * is pushed into the stack
(C) 2*3=6 is pushed into the stack
(D) * is ignored
Correct : Option (A)

Explanation:
 when an operator is encountered, the first two operands of the stack are popped, evaluated and the result is pushed into the stack.

Share

Discusssion

Login to discuss.

Be the first to start discuss.