Sunday, June 15, 2008

Queues- Is Full - check if queue is full

Function IsFull (Q)


The above Function checks whether there exists queue overflow or not. If queue overflow occurs it returns true otherwise it returns false.

C code is given below:

Boolean Is Full (queue * Q)

{

if (Q (rear) = = SIZE – 1)

return true;

else

return false;

}

No comments: