7. Multidimensional Arrays
|
|
C also permits multidimensional arrays specified using [] brackets notation: |
|
int matrix[20][30]; // 20x30 2-D array of int’s |
|
Higher dimensions possible: |
|
char bigmatrix[15][7][35][4]; // what are the dimensions of this? |
|
|
Multidimensional arrays are rectangular; pointer arrays can be arbitrary shaped |
|
|
|