Algorithm for Checking Queue is Full or Empty Condition

Algorithm for checking the queue full condition

Algorithm fnQFull()
{
if(rear==MAXSIZE)
return TRUE;
else
return FALSE;
} // End of Algorithm

Algorithm for checking the queue empty condition

Algorithm fnQEmpty()
{
if(front==rear)
return TRUE;
else
return FALSE;
} // End of Algorithm