Hey guys. Can you explain me about this?
char a[8][4][10]
what does it mean?
Printable View
Hey guys. Can you explain me about this?
char a[8][4][10]
what does it mean?
This is a 3 dimensional array of chars. The first dimension is 8, the second 4 and the third 10.
If you want to access the (i,j,k)-th element you have to write
By curiosity, where do you need that? :)Code:a[i][j][k]
I hope this is not supposed to represent some 2D string array...?
what do you need it for? or in what context are you expected to use it? As stated already it is a 3d array - that is it can be used to express let's say blocks within a cube [3][3][3]