#include <iostream>
using namespace std;
struct node{
int data;
node *link;
};
int main(){
node *start,*temp,*prev;
int lim,item;
cout<<"enter the linked list limited :";
cin>>lim;
cout<<"ente item to find :";
cin>>item;
start=new node;
prev=start;
cout<<"enter char for location 1 :";
cin>>start->data;
start->link=NULL;
for(int i=2;i<=lim;i++){
temp=new node;
cout<<"enter char for location"<<i<<" : ";
cin>>temp->data;
temp->link=NULL;
prev->link=temp;
prev=temp;
}
node* ptr;
ptr=start;
while(ptr!=NULL)
{ if (item=ptr->data) {
cout<<"Item is found location of the item is "<<ptr->link;
return 0;
}
ptr=ptr->link;
}
}