void search(struct node *start, int num2) { struct node *p=start; int pos=1; while(p!=NULL) { if(p->info==num2) { printf("%d found at pos %d",num2); return; } p=p->link; } printf("num2 %d not found in the listn", num2); }
Your email address will not be published. Required fields are marked *
Post Comment
Δ
This site uses Akismet to reduce spam. Learn how your comment data is processed.