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 / 233.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  615KB  |  2550x3300
Labels: book | poster | reckoner
OCR: Parameters to Functions 233 Passing ter 18 int X, Y *int ptr; de of the ot be Note 1 int pt &y; ction pr pr intf( intf( "In main before the int call ptr to sd\n" changit, int ptr ave Note 2 ation changit int ptr func- Note3 its of lared pr intf( intf( "In main after the call to changit sa\n" that pr sd, int ptr pass return ****** changit() void changi t int X int *int ptr Note 4 Note int ptr Note printf( "In changit, Ba, *int ptr \n" *int ptr Running the Program In main be fore the call to changi t, 1, 3 *int ptr In changit *int ptr tint ptr In main the call to changi The function main declares and initializes variables and displays their it) val- ues before and after call to the function changit () The function changi makes assignments to its parameters and displays their values Note 1: i ...