Skip to content

Instantly share code, notes, and snippets.

@ahmedshahriar
Created September 30, 2019 07:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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