home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_09 / 519.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-19  |  586KB  |  2550x3300
Labels: book | crt screen | daybook | reckoner
OCR: Arrays with More Than Two Dimensions 519 but i i8 more often thought of multiple two-dimensional arrays To show this the pro- gram threedim.c in Example 9-4 outputs the elements of three as two x4 arrays. mple, lent in the Example 9-4: threedim.c d with the threedim.. C tion prop Synopsis Displays the pai of contents two of d imens. three ional -dimens arrays ional Ob- ect ive Illust rates declarati ion ini itial izat ion, and lows: in three mens .onal array lement access Include Files tinclude <stdio h Constant Definit ons tdefine DIM12 +define DIM23 tdefine DIM34 hat. in int main( void en more double three d[DIMl] [DIM2] [DIM3] Notes and2 * / the ele- f values int it j, for DIM1; i++ DIM2; for DIM3 Note 3 printf three d[i] [j][k] printf( "\n" printf( "\n\n" return ient element mensi DIMI