Tuesday, 12 July 2011

Creating Circular Linked List !!!

struct list{
    int data;
    struct list *next;
};

/*****  Redefining struct list as node  *****/
typedef struct list node;



void init(node *start)
{
    printf("\nEnter Data\n");
    scanf("%d",&start->data);
    start->next=start;
}

No comments:

Post a Comment