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

12th Sep 2016, 10:54 AM
Aryan Pandey
Aryan Pandey - avatar
4 ответов
+ 5
You can have as many dimensions as you want. Just imagine multi-dimensionnal arrays as boxes in boxes.
12th Sep 2016, 11:43 AM
Zen
Zen - avatar
+ 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.
12th Sep 2016, 11:48 AM
Mohammed Maaz
Mohammed Maaz - avatar
0
the above explanations are correct for example int a[3][3][3]; is possible
12th Sep 2016, 5:23 PM
Balaji Rs
Balaji Rs - avatar
0
three dimensional and4,5 dimensions are generally called as multidimensional array.These kind of array are used in matrix multiplication concept generally
14th Sep 2016, 11:59 AM
Eniyan Arvindh
Eniyan Arvindh - avatar