Write a Program in c that implement Queue and its operations ( insertion and deletion ) using arrays
/* Write a Program in c that implement Queue and its operations ( insertion and deletion ) using arrays*/ #include <stdio.h> #define MAX 50 void insert(); void delete(); void display(); int queue_array[MAX]; int rear = - 1; int front = - 1; main() { int choice; while (1) { printf("\n 1.Insert element to queue \n"); printf("\n 2.Delete element from queue \n"); printf("\n 3.Display all elements of queue \n"); printf("\n 4.Quit \n"); printf("\n Enter your choice : \n"); scanf("%d", &choice); switch (choice) { case 1: insert(); break; case 2: delete(); break; case 3: display(); break; case 4: exit(1); default: printf("Wrong choice \n"); } /* End of switch */ } /* End