Why can we omit the first dimension of a multidimensional array when we are passing it to a function?
In my programming class, we were told what when passing a multi
Because the array will decay to pointer and to calculate offset to the elements of the array you do not need to know the innermost dimension. Offset to a[i][j][k] is i*nj*nk+j*nk+k (where nj and nk are corresponding dimensions).
a[i][j][k]
i*nj*nk+j*nk+k
nj
nk