Multidimensional Arrays

C allows of more than 2 dimensions.Such array are multidimensional arrays. The exact limit of the number of dimensions is dependent on the compiler. Multidimensional arrays are rarely required.
The following example declare multidimensional arrays:
int arr1[2][3][4];
float arr2[4][3][2][2];

No comments:

Post a Comment