Friday, 30 September 2011

Checking queue is underflow (empty) or not?


Underflow in a queue occurs when we try to delete an element when the queue is empty. 

int isempty()
{
 return(r==-1);
}



 Queues

 

No comments:

Post a Comment