Hi,

I would like to find a determinant of a 2*2 matrix.

But there seems to be an error while it is running.

Code:s=det2(&det,&m1,2,3); printf("Value of determinant was..%d\n",det); int det2(int *det,matrix *m1,int row,int col){ int A,B,C,D; row=2; col=3; A=(*m1).arr[row][col]; B=(*m1).arr[row+1][col]; C=(*m1).arr[row][col+1]; D=(*m1).arr[row+1][col+1]; *det=(A*D)-(B*C); return(0); }