Function IsEmpty (Q)
This Function checks the queue for an empty condition. If the queue is empty then it returns True otherwise it returns false.
C code is given below:
Boolean IsEmpty (queue Q)
{
if (Q ® front = = – 1)
return true;
else
return false;
No comments:
Post a Comment