0
Good evening, next I have a problem passing a matrix to a C function. I have the following code
void funcao(int mat[][num]);
int main() {
scanf(%d,&num);
}
It is basically the following, I define the size of the matrix in the main function, so the declaration of the function above the code points out that one is not a constant so it gives error, I wanted to know how I can this matrix for a function. Vlw
I think it’s duplicate https://answall.com/q/87638/101 or https://answall.com/q/43948/101.
– Maniero