Data Structures(Circular Queues)
#include <stdio.h> # define max 6 int queue[max]; // array declaration int front=-1; int rear=-1; // function to insert an element in a circular queue void enqueue( int element) { if (front==-1 && rear==-1) // condition to check queue is empty { front=0; rear=0; queue[rear]=element; } else if ((rear+1)%max==front) // condition to check ...