Skip to content

Instantly share code, notes, and snippets.

@ahmedshahriar
Created September 30, 2019 07:43
Show Gist options
  • Save ahmedshahriar/fa6fdb9453b6f12e1a83c78a00274c2f to your computer and use it in GitHub Desktop.
Save ahmedshahriar/fa6fdb9453b6f12e1a83c78a00274c2f to your computer and use it in GitHub Desktop.
int searchItem(int sist[],int item,int sizeList){
int position=0;
while(position<(sizeList-1)){
if(sist[position]==item){
break;
}else{
position++;}
}
return position;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment