program segment for deletion of any element from


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;

}

} }

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: program segment for deletion of any element from
Reference No:- TGS0263947

Expected delivery within 24 Hours