Insertion and Deletion Linked List
Insertion and Deletion Linked List
int data;
struct node *next;
}
Insert at the beginning struct node {
int data;
struct node *next;
Allocate memory for new node
}
Store data Struct node *head,*newnode;
Change next of new node to Newnode=(structnode *)malloc(size of(structnode))
Printf(“Enter the data to store”);
point to head Scanf(“%d”,&newnode->data);
Change head to point to recently Newnode->next=head;
head=newnode;
created node