Syntax:
struct node {
int data;
struct node *next;
struct node *pre;
};
struct node *head, *ptr;
ptr = (struct node *)malloc(sizeof(struct node));