What is queue in C language (antrian di bahasa c)
Definition : queue is a function which is have 2 pointer variable usually called head and tail or front and rear, Enqueue data start from back so rear/tail will move to new data, and dequeue start from head/front move to next data, therfore queue have a FIFO character. queue is a function of c to minimizing ram load
Function of queue :
- Enqueue : proces to add data from back
- Dequeue : proces to take data from front
- Chek queue (Full or Blank) : proces to chek the queue its not a direction function
- Queue initialitation : Declaration of queue

Tidak ada komentar:
Posting Komentar