1struct node(){
2 int key;
3 node *next;
4 node(x){
5 key = x;
6 next = NULL;
7}}
8// after you take a input of a linked list .
9// creating a new node.
10node *temp = new node(key); // tem pointer pointing towards the new node.
11temp -> next = head; // inserting the mew node in the start .
12
13
14
15