X hits on this document

144 views

0 shares

0 downloads

0 comments

47 / 63

Copyright ©2004 Pearson Addison-Wesley. All rights reserved.

8-47

Initialization of Multidimensional Arrays

The multidimensional array can also be initialized in declarations.

The initialized values are grouped in rows.

e.g., char tictac[3][3]={{‘a’, ’b’, ’c’}, {‘d’, ’e’, ’f’}, {‘ ’,‘ ’,‘ ’}};

We can also declare arrays with more dimensions.

e.g., declare a 3-dimensional array. int enroll[course][campus][cls_rank];

Document info
Document views144
Page views144
Page last viewedTue Dec 06 20:01:01 UTC 2016
Pages63
Paragraphs754
Words4119

Comments