Hey guy , i am new in here and in programming I have a problem and i need help arguently please. I have a code that uses 2D arrays the array is initiallized in the main and then the main calls a function which takes this array as an argument. Whenever i compile i get the following warning (warning: passing argument 1 of ‘Arrange’ from incompatible pointer type)and it won't work any idea how to solve this really appreciate it. thanks in advance warning: passing argument 1 of ‘Arrange’ from incompatible pointer type
the function is defined as follows:
and in the main i am calling it that way:Code:void Arrange(int array[][20],int i, int j, int array1[20], int k);
Code:Arrange(M, 10, 20, M1, 1);