Multidimensional means that the array can have more than three dimensions, how can I handle a four dimensions array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multidimensional means that the array can have more than three dimensions, how can I handle a four dimensions array?

30th Mar 2016, 12:15 AM
marco a jacinto perez
marco a jacinto perez - avatar
2 Answers
0
Here is a 4 dimensional array with the name "arr". The dimensions are 5x3x7x4 int[,,,] arr = new int[5,3,7,4]
4th Apr 2016, 7:04 PM
gbetsis
0
But keep in mind that it's really hard to imagine an array with more than three dimensions. Use it only if it is absolutely necessary. Handling a jagged array with one-, two- or three-dimensional array is imho more clear.
22nd Jul 2016, 2:45 AM
Idril
Idril - avatar