Write A C Program To Perform The Fo
Write A C Program To Perform The Fo
and Display.
#include <stdio.h>
#include <stdlib.h>
int queue[MAX];
int front = -1, rear = -1;
while (1) {
printf("\n1. Insert\n2. Delete\n3. Display\n4. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);
switch (choice) {
case 1:
printf("Enter the element to insert: ");
scanf("%d", &element);
insert(element);
break;
case 2:
delete();
break;
case 3:
display();
break;
case 4