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 / 265.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  497KB  |  2550x3300
Labels: book | crt screen | daybook | reckoner | sky
OCR: Programming Problems 265 Exercises and ptrex.c (/N} Synopsis pointers Illustrates different ways Outputs to of the the val arrays addressing lues and arrays. of expressi ions relevant Obj ecti ive To provide practi ions .ce with pointer and array exp ress Inci .ude Files #include <stdio h> es main( void int and static int intarr ay[5] ={ 2 -24 -123, static char chararray [5] 'h' 28.2 int *int ptr intarray; chararray char *char ptr ch ANSWERS int ptr 4336176 pr intf( "d\n 4336196 printf( "gd\n" char ptr 6684148 printf( "gd\n &int ptr printf "gd\n" *int ptr pri intf( "gd\n" intarray[4] es nd printf( ngd\n" chararray[4] printf( "d\n" intarray printf( d\n chararray printf( "d\n, int ptr bytes of printf( d\n char ptr en tputs values expressions Objective lude intarrav