Wait for code to load.... #include <stdio.h> #include <stdlib.h> struct node { int item; struct node *prev; struct node *next; }; struct node *head = NULL; struct node *start = NULL; struct node * create_new_node () { struct node *temp = (struct node *) malloc (sizeof (struct node)); if (!temp) { printf (" memory not allocated ..exiting...\n"); getchar (); exit (1); } return temp; } void insert (int x) { struct node *var = create_new_node (); var->item = x; var->next = NULL; if (start == NULL && head == NULL) { var->prev = NULL; head = start = var; } else { var->prev = head; head->next = var; head = var; } } void display (struct node *start) { struct node *temp; temp = start; if (temp == NULL) return; else { while (temp != NULL) { printf ("%d ->&quo
a technical and geek friendly site where you can get free downloads, programming knowledge and how things works ....