|SUWAT©2019|
|DataSructure|
Queue by One dimension Array
Queue By One dimensional Array ::
Code ::
int Queue(10); ::
Queue(i)
Memory
QUEUE
Operation
9
11010
TOP = 9
8
11001
Singly Queue
Circular Queue
7
11000
Enqueue(Manual)
6
10111
Enqueue(Random)
5
10110
Dequeue
4
10101
3
10100
2
10011
1
10010
Reset Queue
0
10001
BOTTOM = 0
Data out :