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 / 209.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  741KB  |  2550x3300
Labels: book | reckoner
OCR: Parameters to Functions 209 Arrays as printf( "Item number 8d:\t\t index+1 inventory ); index rd printf( "Number on hand $5d n ere The program is made up of the functions main driver; input it outputs inventory(), message and with print printf), inven tory() inventory() calls input The function invent main do some input, inventory() and calls and tory ad int some output. Both input print inventory() are controlled by loops that traverse the array. Note 1:The ANSI prototypes declaration of print inventory and input inventory () contain the name of the function, first the parameter return to type each and the number and type of the parameters. parameter in The the is array. of type int, function is an array ofints. The second and will contain the number of f meaningful entries Note 2 The arr ...