SLL, DLL, CLL Operations(class work)
/*Syntax or Node structure of Single linked list*/ struct node { int data; struct node *link; }; struct node *root=NULL; (here root value intially NULL) /*Creating nodes in single linked list*/ void create() { struct node *second,*third,*fourth,*fifth; clrscr(); root=malloc(sizeof(struct node)); second=malloc(sizeof(struct node)); third=malloc(sizeof(struct node)); fourth=malloc(sizeof(struct node)); fifth=malloc(sizeof(struct node)); root->data=10; second->data=20; third->data=30; fourth->data=40; fifth->data=50; root->link=second; second->link=third; third->link=fourth; fourth->link=fifth; fifth->link=NULL; } /*insert at an end in SLL*/ void append() { struct node *temp; temp=(struct node*)malloc(sizeof(struct node)); printf("enter node data:"); scanf("%d",&temp->data); temp->link=NULL; ...