here's the code I'm not getting :
void queueins(struct queue *q,int x)
{
if (((q->front ==0) &&(q->rear==MAXSIZE -1))||(q->front ==q-
>rear+1))
{
printf("Queue full\n");
display(q);
return;
}
else
{
if (q->front == -1)
{ q->front =0; q->rear = 0;}
else
q->rear = (q->rear+1) % MAXSIZE;
q->items[q->rear] = x;
}
}
pls explain.. I find this very boring !
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
What program did you use for the code?