how do i pass 3d arryas into functions? (is it called passing)?
eg:
char var[22][4][8];
void Addvar(char var[][][])
how do i pass 3d arryas into functions? (is it called passing)?
eg:
char var[22][4][8];
void Addvar(char var[][][])
and this for reference parameters:Code:void Addvar(char var)
Code:void Addvar(char &var)
the best things in life are simple.
For array, you should supply the dimension except the 1st one.
Ex.
1 dimension
void Function(char array[])
2 dimension
void Function(char array[][10])
3 dimension
void Function(char array[][10][20])
==> Compiler needs to know the dimension except 1st to compute the address of an array. If you do not specify it.
array[][][] maybe array[10][10][20] or array[100][2][2], thay make big difference in array addressing
thankies!