Say I have array a[][]. I find it is even illegal to claim int a[][] as a parameter in function. What should I do? I could only use int **?
ALso why int a[] is legal as a parameter, simply because, it is essentially a int*?
Say I have array a[][]. I find it is even illegal to claim int a[][] as a parameter in function. What should I do? I could only use int **?
ALso why int a[] is legal as a parameter, simply because, it is essentially a int*?
You should specify the size of 2nd parameter
a[][size]
When you pass an n-dimensional array to a function, then size of last n-1 dimensions must be specified. Only size of 1st dimension can be left blank.
int foo(int a[][size1][size2][size3][size4][size5])