home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_04 / 246.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  682KB  |  2550x3300
Labels: book | crt screen | monitor | reckoner
OCR: 246 Chapter Arrays and Pointers This program consists of the two functions main and lin search ( The search function initializing It also ma: an in( reports array, sets the and up for results the prompting ofthe call for to search. and lin The sea accepting rch( function input by of declaring search target for variables, is the the implementation of the lincar search Note that it does not depend on the specifics of this program and could be used to scarch an array of any size in a totally differ- ent program Note 1:If the target is found in the array, the index of where it was found returned Note 2If the for loop terminates without finding the target, the value returned. Note was chosen the return value in this case since can never be the index ofa cell in an array Learning Activities Test ...