Advertisement
shohan11421

part (B) b ar 2 no

Mar 2nd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. void del_any_pos(int a)
  2. {
  3.  
  4.     struct node *temp2;
  5.     temp = head;
  6.     while(temp ->data != a)
  7.     {
  8.         temp2 = temp;
  9.         temp = temp -> next;
  10.     }
  11.     temp2 -> next = temp -> next;
  12.     free(temp);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement