Friday, 30 September 2011

Checking queue is overflow or not?

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

Queues operations (or) implementing the Queues

No comments:

Post a Comment