delete elements in a singular linked list
问题 in this code i am deleting the element in the linked list 11->12->13->14->15->12->16 if i want to delete 12 it deletes only the first time occurrence element i.e o/p wll be 11->13->14->15->12->16 but i want to delete all the occurrence of 12, how to do that? can anyone give me some inputs? #include<stdio.h> #include<stdlib.h> void insertbeg(); void delpos(); void display(); struct node { int info; struct node *link; }*first=NULL; struct node *create(); int item,key; main() { int choice; while