Queue Implementation
Queue Implementation in C Language /** * Queue implementation using array. */ #include <stdio.h> #include <stdlib.h> #include <limits.h> // Queue capacity #define CAPACITY 100 /** * Global queue declaration. */ int queue[CAPACITY]; unsigned int size = 0; unsigned int rear = CAPACITY - 1; // Initally assumed that rear is at end unsigned int front = 0; /* Function declaration for various operations on queue */ int enqueue(int data); int dequeue(); int isFull(); int isEmpty(); int getRear(); int getFront(); /* Driver function */ int main() { int ch, data; /* Run indefinitely until user manually terminates */ while (1) { /* Queue menu */ printf("...