Program segment for deletion of any element from the queue
delete()
{
int delvalue = 0;
if (front == NULL)
printf("Queue Empty");
{
delvalue = front->value;
if (front->next==NULL)
{
free(front); queueptr=front=rear=NULL;
}
else
{
front=front->next;
free(queueptr);
queueptr=front;
}
} }