Not error as such....it's showing an invalid output for the matrix {{1,2,3},{4,5,6},{7,8,9}}.
For row index 1 and column index 1 it is givin the cofactor {{-1,8653},{9119,22053}}......

Thanks for the advise regarding scanf....I did not know......could u teach me a bit more elaborately?? please????