MCPcopy Create free account
hub / github.com/anupam-kumar-krishnan/Competitive_Programming / main

Function main

Basic Programming/queue.c:86–102  ·  view source on GitHub ↗

Driver program to test above functions./

Source from the content-addressed store, hash-verified

84
85// Driver program to test above functions./
86int main()
87{
88 struct Queue* queue = createQueue(1000);
89
90 enqueue(queue, 10);
91 enqueue(queue, 20);
92 enqueue(queue, 30);
93 enqueue(queue, 40);
94
95 printf("%d dequeued from queue\n\n",
96 dequeue(queue));
97
98 printf("Front item is %d\n", front(queue));
99 printf("Rear item is %d\n", rear(queue));
100
101 return 0;
102}

Callers

nothing calls this directly

Calls 5

createQueueFunction · 0.85
enqueueFunction · 0.85
dequeueFunction · 0.85
frontFunction · 0.85
rearFunction · 0.85

Tested by

no test coverage detected