Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Data File StructureRSS Feeds

simple queue with link list

Posted By: Ararinda Schmidt     Category: C Programming     Views: 3780

Write a program of simple queue with link list.

Code for simple queue with link list in C Programming

#include<conio.h>
#include<stdio.h>
#inclcde<stdlib.h>

struct queue
{
    int i;
    struct queue *back;
};



void cre(void);
void disp(void);
void ins(void);
void del(void);

struct queue front*;
struct queue rear*;
struct queue t*;

void main()
{

    int user;
    clrscr();
    printf("\n\t 1.CREATE.");
    printf("\n\t 2.INSERT.");
    printf("\n\t 3.DELETE.");
    printf("\n\t 4.DISPLAY.");
    printf("\n\t 5.EXIT.");
    scanf("%d",&user);
    while(user!=5)
    {
        if(user==1)
        {
            cre();
        }
        if(user==2)
        {
            ins();
        }
        if(user==3)
        {
//            del();
        }
        if(user==4)
        {
            disp();
        }
        if(user==5)
        {
            break;
        }
        getch();
    }
    getch();
}

void cre(void)
{
    int i;
    front=(struct queue
    printf("\n\t ENTER DATA::::");
    scanf("%d",&front->i);


}
  
Share: 


Didn't find what you were looking for? Find more on simple queue with link list Or get search suggestion and latest updates.

Ararinda Schmidt
Ararinda Schmidt author of simple queue with link list is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!