+ 2
purpose of Three Dimensional Array, And how does it look like
Can anyone please explain what is a three dimensional array, how does it look like, where do we use them? For what I know is that two dimensional arrays are used in matrix multiplication, add, sub etc.
4 Respuestas
+ 8
As @Kinshuk said, it can be visualised as a cube, or a graph with 3 axis. That, or you can also think of multidimensional arrays as boxes containing boxes. E.g.
int array[3][2];
will declare three large boxes, and each box contains two smaller boxes.
int array[2][2][2];
will declare two large boxes, each containing two smaller boxes. In the smaller boxes, each contains another two smaller boxes, etc.
+ 4
It can be used to represent a cube ( mathematics or something like rubik's ) , a collection of matrices or a 3D world space for a game ( each element as a coordinate )...
+ 3
@Hatsy Rei
Something like Matryoshka Dolls, right?