+ 2
Arrays like a cube... Possible or not?
what do you think about this? int sample[x][y][z]= { {x, x, x}, {y, y, y}, {z, z, z} };
2 Answers
+ 4
Yes it' possible
0
Actually, the example array you made is still only a 2D array. A 3D would be like this:
int sample[1][2][2] =
{
{{z, z}, {z, z}},
{{z, z}, {z, z}}
};
This is still possible.