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