MCPcopy Create free account
hub / github.com/3rfaan/courses / Dequeue

Function Dequeue

C/freeCodeCamp/Data Structures/queue-array.c:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void Dequeue()
45{
46 if (IsEmpty())
47 {
48 return;
49 }
50 else if (front == rear)
51 {
52 front = -1;
53 rear = -1;
54 }
55 else
56 {
57 front = (front + 1) % SIZE;
58 }
59}
60
61void Print()
62{

Callers 1

mainFunction · 0.85

Calls 1

IsEmptyFunction · 0.85

Tested by

no test coverage detected