0
6.0kviews
Write a menu driven program in C to implement QUEUE ADT. The program should perform the following operations: (i) Inserting an Element in the Queue (ii) Deleting Element from the Queue (iii) Dis
1 Answer
0
205views
    #include<stdio.h>
    #include<conio.h>
    #define max 5
    typedef struct Queue
    {
        int r,f;
        int data[max];
    }queue;
    void  initialize(queue *p);
    int empty (queue *p);
    int full(queue *p);
    void enqueue(queue *p,int x);
    int dequeue(queue *p);
    void printQueue(queue *p);

    void main()
    {
        queue q;
        int op,x;
        initialize(&q);

        do
        {
                printf("\n 1. INSERT \n 2. DELETE …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.