

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















front
front rear
rear
front
front rear
rear
front
front rear
rear
front
front rear
rear
front
rear
front
rear
front
rear
front
rear
front
rear
front
rear
front
rear
front
rear
front
rear
front
rear
void enqueue(int x)
{
rear = (rear+1)%size;
array[rear] = x;
noElements = noElements+1;
}
front
rear
front
rear
size
noElements