Overview of Three Dimensional Array

A multidimensional array is an array consisting of more than 2 dimensions.  We can perceive three dimensions at most. To visual 3-dimensional array, let's take an example of a cube.



Therefore, the array is cube[3][3][3].

For better understanding, represent a 3-D array as a combination of 2-D arrays. 
Note: The two-dimensional array must have the same size.


To conclude, a three dimensional array has arr[sub-array number][row][column].

Application of 3-D array:
  • To represent real-world location co-ordinates.
  • For storing spatial data such as MRI data.
  • 3-D modelling.

Comments

Popular posts from this blog

Overview of Tree Data Structure

Overview of 2 Dimensional array