What is the value returned by the search functions supposed to be?
Hint: Returning a -1 is likely supposed to be the value to indicate the search failed.
Tim S.
you are right , it must return -1 and a msg says number isn't found if the search failed ... and return the location of the number if number was found.