Below program (a toy program to pass around arrays to a function) doesn\'t compile. Please explain me, why is the compiler unable to compile(either because of techni
In C99, as a simple rule for functions that receive "variable length arrays" declare the bounds first:
void print2(int n, int m, int array[n][m]);
and then your function should just work as you'd expect.
Edit: Generally you should have a look into the order in which the dimension are specified. (and me to :)