|SUWAT©2019|
|DataSructure|
Stack by One dimension Array
|Infix Postfix Prefix |
Stack By One dimensional Array ::
Code ::
int Stack(10); ::
Stack(i)
Memory
STACK
Operation
9
11010
TOP = 9
8
11001
Push(Manual)
7
11000
Push(Random)
6
10111
POP
5
10110
4
10101
3
10100
2
10011
1
10010
0
10001
BOTTOM = 0
Data out :