Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Question!


Name: prema
Title:
  double linked list
Question:
i've coded double linked list using structure with typedef keyword.when i execute it will take element to be inserted after that im getting  segmentation fault (code dumped).


     #include <stdio.h>
#include<stdlib.h>
typedef struct node
{
    int info;
    struct node *llink;
    struct node *rlink;
}NODE;
NODE *insert_front(int,NODE*);
NODE *delete_front(NODE*);
void display(NODE*);
int main(void)
{
     int item,i,ch;
     NODE *head;
     printf("enter ur choice 1.insert 2.delete 3.displayn ");
     scanf("%d",
Answers: