Overflow in a queue occurs when we try to insert the data to a queue which is already full. if rear is size-1 are equal, queue is overflow:
int isfull()
{
return(r==size-1);
}
Queues
operations (or) implementing the Queues
int isfull()
{
return(r==size-1);
}
No comments:
Post a Comment