hi. im having trying with this program im working on. Basically im trying to pass a 2D array to a function. Then tests for a antidiagonal. But im getting errors in passing the array. Would someone point out the error to me?

if ( checkdiag2(matrix, size) == 1 )
printf("\nThe matrix is %d x %d and all the numbers on the anti diagonal are the same.\n", size, size);
else
printf("The matrix is %d x %d and all the numbers on the anti diagonal are NOT the same.", size, size);