Queue Program in C using an Array and Link List
/* * C Program to Implement a Queue using an Array */ #include <stdio.h> #define MAX 5 int queue_array[MAX]; int rear = - 1; int front = - 1; void insert(); void delete(); void display(); void main() { int choice; while (1) { printf("1.Insert element to queue \n"); printf("2.Delete element from queue \n"); printf("3.Display all elements of queue \n"); printf("4.Quit \n"); printf("Enter your choice : "); 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 of while*/ } /*End of main()*/ void insert() { int add_item; if (rear == MAX - 1) printf("Queue Overflow \n"); else { if (front == - 1) /*If queue is initially empty */ front = 0...