I am trying to call a function in the following way: Before int main:
int matrixCheck(int matrix[][LEN] , int j , int i);
Call in the main:
flag = matrixCheck(matrix[][LEN] , int j , int i);
The function itself:
int matrixCheck(int array[][LEN] , int j , int i)
and I am receiving the following error error: syntax error before ']' token
(The call in the main)
There is no error before the call because it has only the following code before it.
int matrix[][LEN] = {{16,2,3,13},{5,11,10,8},{9,7,6,12},{4,14,15,1}};
int i = 0, j = 0;
int flag = 0;
Anyone has any idea why this happens?