Multy Dimentional arrys
Posted by
Ravi Kumar at Sunday, September 18, 2011
Share this post:
|
0 Comments
C allows arrays of three or more dimensions. The exact
limit is determined by the compiler.
The general form of multi-dimensional array is
type array-name[s1][s2][s3]----------------------[sm];
where si is the size of the ith dimension.
Some examples are:
int survey [3][5][12];
float table [5][4][5][3];
survey is a three dimensional array declared to contain
180 integer type elements.Similarly table is a four dimensional
array containing 300 elements of floating-point type.