void function1(int anarray[size][size]); // <- Is that correct?
Yes it is. void function1(int anarray[][size]); will work too.
void function1(int anarray[][])
No, this is a compiler error. Only the first (internal) dimension of the array breaks into a pointer when passing the function.
user529758
source share