elementType arrayName [numRows][numColumns];... where elementType is int, double, char, etc.; arrayName is your descriptive variable name; and numRows and numColumns are some number above 0 (independent of each other).
| arrayName | |||||||||||||||||||
| FE00 |
|
| | n u m R o w s | | - |
|||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Note: The representation above it a good way to think about a two dimensional but in memory all of the elements are actually stored in one long contiguous block. Each row is attached to the end of the previous in a long line.
int array2d[15][10];
float percentages[5][2];
double employees[HR_DATA_ENTRIES][FIELDS];