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