Interesting...
Programmers may need to use arrays with more than two dimensions...

For example...

[1] A Maths exam marks of some pupils may be stored in a one-dimensional array...

 

To find one of the marks you only need to know the pupil...
  
 
[2] If more subjects are included, then the data needs to be stored in a two-dimensional array...

To find one of the marks, you need to know the pupil and the subject.
 
 
[3] If the exam marks for these subjects are also stored for each year the pupils are in school, then the data needs to be stored in a three dimensional array...

To find one of the marks, you need to know the pupil, the subject and the year.
...dimensions greater than three are possible and programmers will often use arrays with a large number of dimensions.

   Back