0
Is there a way to imagine more than three dimensional arrays? can anyone give an example where more than three dimensions may be required in a program
Thanks in advance
4 ответов
+ 5
You can have as many dimensions as you want. Just imagine multi-dimensionnal arrays as boxes in boxes.
+ 3
Just imagine arrays as matrices and you will easily figure out how they work and store data. Practically 3, 4 dimensional or even 5 dimensional arrays can be used in mathematics based program to solve matrices or determenents of the order 4x4 or 5x5. But truly speaking handling arrays above 3 dimensions often bring confusion.
0
the above explanations are correct
for example
int a[3][3][3]; is possible
0
three dimensional and4,5 dimensions are generally called as multidimensional array.These kind of array are used in matrix multiplication concept generally