Array of Arrays (Multi-dimensional Arrays)

A 2-D array is an array of 1-D (i.e. single dimensional) arrays and can be visualized as a plane that has rows and columns. Each row is a single-dimensional array. A 3-D array is an array of 2-D arrays and can be visualized as a cube that has planes. Each plane is a 2-D array. This concept can be scaled up to any level and in general, an n-D array is an array of (n-1)-D arrays. Arrays having dimensions higher than three are generally not needed unless and until highly data-extensive applications are to be developed. Therefore, I will restrict the discussion only to three-dimensional arrays.

Post a Comment

Previous Post Next Post