Please help me in inserting delete function it
Code:#include<stdio.h> #include<malloc.h> struct node { int data; struct node *next; }*start; int insert(int num) { struct node *a; a=(struct node*)malloc(sizeof(struct node)); a->data=num; a->next=start; a=start; } int display() { while(start->next!=NULL) { printf("%d",start->data); } } main() { start=NULL; insert(20);insert(30);insert(40); display; }