Posts

Showing posts from October, 2019
Image
DOUBLE LINK LIST COMPLETE// #include<conio.h> #include<stdio.h> #include<stdlib.h> struct node{ int data; struct node* link; }; int main() {        struct node *ptr3,*temp2 ,*head=NULL,*ptr=NULL,*front=NULL,*rear=NULL,*temp=NULL,*ptr2=NULL;//pointer declaration        int n;        printf("circular queue program is created by mine\n\n");        printf("===========================================================================\n");        while(1)        {        printf("press the key for doing operations in our program\n");        printf("1. enqueue\n2. dequeue\n3. view the queue\n4. exit\n");        scanf("%d",&n);        switch(n)        { case 1: temp=(struct node*)malloc(sizeof(struct node)); //memory allocate...