#include<stdio.h>
#include<process.h>
#define QUEUE SIZE 5
int qfull int count)
return( count == QUEUE_SIZE)?1:0;}
Int qempty(int count)
{
return (count==0)?1:0;
}
void insert_rear(int item, int q[], int *r, int *count)
{
if{gfull(*count))
I
{
printf("overflow of queue");
return;
}
*r=*r%QUEUE-SIZE+1;
q[*r]=item;
*count+1;
}
void delete -front(int q[], int *f,int*count)
{
if(qempty(*count))
{
printf("underflow of queue");
return;
}
printf()
Attachments:
Answers
Answered by
3
Answer:
there is error in program download solo learn app from play store and run your coad there
Similar questions