How can I pass a two-dimensional array as an argument of a function (considered that the size of the array is known)? I will need help for both the declaration and the definition of the function. What I have in mind is something like this:
#include <stdio.h>
#define size 10
void function(int anarray[size][size]); //<- Is that correct?
...
void function(int anarray[][]) //<-Is this too?
{
}
Thanks a lot!