X hits on this document

195 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 views195
Page views195
Page last viewedWed Jan 18 04:41:04 UTC 2017
Pages63
Paragraphs754
Words4119

Comments