Skip to content

Instantly share code, notes, and snippets.

@ZiKT1229
Last active July 25, 2018 06:46
Show Gist options
  • Save ZiKT1229/91dbcbfc928541d662fc8185bfd74d84 to your computer and use it in GitHub Desktop.
Save ZiKT1229/91dbcbfc928541d662fc8185bfd74d84 to your computer and use it in GitHub Desktop.
linearSearchExample
void linearSearch(int array[])
{
for (int i=0; i<array_size; i++)
if (array[i]==5)
cout<<array[i];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment