Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void insert(int x)
- {
- node* temp=new node;
- node* n=head;
- temp->data=x;
- temp->next=NULL;
- while(n!=NULL)
- {
- n=n->next;
- }
- n=temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement