Suppose you have an empty generic stack. Indicate which of the following instructions will invoke a stack underflow.
1. Push 1
2. Push 2
3. Pop
4. Push 9
5. Pop
6. Pop
7. Pop
8. Pop
9. Push 3
1. Push 1 1
2. Push 2 2 1
3. Pop 1
4. Push 9 9 1
5. Pop 1
6. Pop stack underflow
Comments
Leave a comment