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 / 262.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  569KB  |  2550x3300
Labels: book | crt screen | reckoner | sky
OCR: 262 Chapter Arrays and Pointers arraysum Synopsis Displays the val lue returned by the functi ion addar ray) with two different sets of parame ters Object ive To provi .de test progr ram for the funct ion adda array) WI tten for an exerci se The answers should be 55 and Inc] .ude Files inc. lude <stdio h> Funct ion Protot ypes int addarray( int int J int main( void int arrayi [10] 4r 5, 6,7,8 9, 10 } array2[4] printf "The sum of the ements in arrayl ic sd. \n" adda rray( arrayl printf( "The sum of the 2 ements irrayz addarray( array2, return If you to used pointer array notation. subscript If you notation used in pointer your function notation adda initially, irray() rewrite change the function with array subscript notation. Test the new version of your func- tion with the program in part ...