Page 1 of 1

Assume the array iVals was created in main and passed to a search method. The method call is bFound = fbFind(iVals, 8);

Posted: Thu Jul 14, 2022 2:12 pm
by answerhappygod
Assume the array iVals was created in main and passed to asearch method. The method call is bFound = fbFind(iVals, 8); Ascoded, this example will search the array for the value 8. Iffound, the method will return true. If not, it will return false.We're only interested in finding the first instance of the searchvalue, so you can return to the calling method as soon as you finda match.