Example & Tutorial understanding programming in easy ways.

Write a function to perform the deletion on circular Queue.

Following is the function that are used to delete the item in circular queue:

program-

int deletion()
{
if(front==-1)
{
printf("Queue underflown");
return;
}
if(rear==front)
{
front=-1;
rear=-1;
}
else
if(front==MAX-1)
front=0;
else
front=front+1;
}




Read More →