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 / 197.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  736KB  |  2550x3300
Labels: book | crt screen | poster | reckoner
OCR: One Dimensional Arrays Example 4-1 scores.c scores Synopsis Accepts input of 10 integers from the keyboard basic ray Objective of into Illus access an trates of array array of ints. lements imum field definiti Incl udes width on an and example speci ifying mini pri intf() call Inc. Lude Files #incl ude <stdio h> int main void Note 1 int test scores [10 int printf( P Lease enter 10 the ten test scores now \n" Note Note for pr intf Note scanf ga" &test printf( "Thank you \n" return There is a ofa single for loop function, surrounded main by Two variables are calls defined. The The body function of the body consists and two scanf printf() for loop contains calls Note 1: The variable test scores S defined as an through array of 10 elements of type int The indices the will variable be the integ ...