Deletion Operation

0
84
Deletion operation
Deletion operation

Before deletion operation we must check for emptiness of the queue. For the contiotion of the empty queue. when queue is empty.

Example-

 

Front ==+1

It also called queue underflow condition.

Int delete”(queue*qp)

{

Int   x;

If ( qp – front = =qp-rear+1)

Printf (“queue underflow condition “);

Else

{

X=qp- else [qp – front ++];

Return  x;

}

}

LEAVE A REPLY

Please enter your comment!
Please enter your name here