Stacks on Data Structure and Algorithms related Questions and Answers


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

1. 5*4=20 is pushed into the stack
2. * is pushed into the stack
3. 2*3=6 is pushed into the stack
4. * is ignored
Answer :   1 - 5*4=20 is pushed into the stack  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter