#include #include void main() { int no,i,front=0,rear=0,k,queue[50],element,size,next=1; char c; clrscr(); printf(" \tPROGRAM TO INSERT, DELETE AND DISPLAY ELEMENTS TO CIRCULARQUEUE"); printf(" \t......................................................."); printf(" \tEnter the size of the queue: "); scanf("%d",&size); do { printf(" \t\t\t\tMENU
How is the aluminum fins fed into the tray used for fin insertion in core? And what's the mechanism for tray replenishment?
#include #include void main() { int no,i,front=0,rear=0,k,queue[50],element,size,next=1; char c; clrscr(); printf("
\tPROGRAM TO INSERT, DELETE AND DISPLAY ELEMENTS TO CIRCULARQUEUE"); printf("
\t......................................................."); printf("
\tEnter the size of the queue: "); scanf("%d",&size); do { printf("
\t\t\t\tMENU
"); printf("\t\t1.INSERT
\t\t2.DELETE
\t\t3.DISPLAY
\t\t4.EXIT
\t\tEnter your choice: "); scanf("%d",&no); if(no==1) { if(rear==size-1) { printf("
overflow "); } printf("\t\tEnter the element: "); scanf("%d",&element); if(front==0&&rear==0) { front=rear=1; queue[rear]=element; } else { next=(rear%size)+1; if(next==front) printf("\t\tOverflow
"); else { rear=next; queue[rear]=element; } } } if(no==2) {if(front==0) printf("\t\tUnderflow
"); else { k=queue[front]; printf("\t\tDeleted element is %d
",k); } if(front==rear) front=rear=0; else front=(front%size)+1; } if(no==3) { if(front==0&&rear==0) printf("\t\tUnderflow
"); else { printf("\t\tQueue elements are"); if(front