OUPUT
OUPUT
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 65
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 98
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 545
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 3
65 ->98 ->545 ->
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 2
545 is POPPED
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 2
98 is POPPED
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 2
65 is POPPED
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 2
Empty Stack: Underflow condition occured1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 65
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 98
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 55
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 55
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 88
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 1
Enter an item to be pushed 99
Overflow Condition occured1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 3
65 ->98 ->55 ->55 ->88 ->
1. PUSH
2.POP
3.Show
4.Quit
Enter your choice(1,2,3 or 4) ... 4