0
1.4kviews
Write a program to implement Doubly LinkedList.perform the following operations (i) Insert a node in the beginning (ii) Insert a node in the End (iii)Delete a node from the End (iv) Display t
1 Answer
1
12views
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
typedef struct Dnode
{
        int data;
        struct Dnode* next;
        struct Dnode* prev;
}Dnode;

Dnode* create(int);
void print(Dnode*);
int count(Dnode*);
Dnode* insertB(Dnode*,int);
Dnode* insertM(Dnode*,int);
Dnode* insertE(Dnode*,int);
Dnode* del(Dnode*);
void main()
{
    Dnode *HEAD;
    int n,number,ch,value;
    clrscr();
    printf("\n Enter no. of Item");
    scanf("%d",&n);

    HEAD=create(n);

    do
    {
        printf("\n 1.Insert at …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.