0% found this document useful (0 votes)
8 views2 pages

OUPUT

Tcvjkkvhhjjjjfdsvb

Uploaded by

gm506307
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

OUPUT

Tcvjkkvhhjjjjfdsvb

Uploaded by

gm506307
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

OUTPUT:

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

You might also like