As we move from three dimensions to four, five, or more, we can continue to conceptualize an array of N dimensions either as an array of (N-1) dimensions or as a contiguous block of basic elements whose size is the multiplicative result of each dimension. Say we wanted a four-dimensional array that has 7 x 3 x 4 x 5for each dimension. This four-dimensional array, named array4D, can be conceptualized as an array of seven arrays of array3d or as a block whose size is 420 elements, or 420 = 5 x 4 x 3 x 7
Here, 5 is the number of first-dimension elements, 4 is the number of second-dimension elements, 3 is the number of third-dimension elements, and 7 is the number of fourth-dimension elements.
C, as specified, allows an unlimited number of array dimensions. The actual limit depends on the limits of the compiler used. In general practice, however, it is unwieldy, both in terms of human conceptualization and in terms of machine memory...