Vidyalelo
Data Structure · Q57

Stacks in Data Structures

Programming · Data Structure · question 57

Q57

Consider the stack | 5 | | 4 | | 3 | | 2 |. At this point, '*' is encountered. What has to be done?

A.
5*4=20 is pushed into the stack
Answer
B.
* is pushed into the stack
C.
2*3=6 is pushed into the stack
D.
* is ignored

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board