Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Dequeue(struct Queue q)
- {
- if (QueueEmpty(q)) printf("NULL\n");
- int x = q.data[q.head];
- q.head++;
- if (q.head == q.cap) q.head = 0;
- q.count--;
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement