Matrix can represented by using a 2D array in C.Before multiplication the order of the matrix is checked to ensure multiplication is possible.The Core Code used for this approach is C[i][j]+=A[i][p]*B[p][j]; Code (markup): Get the Complete Code for this approach from http://c-madeeasy.blogspot.com/2011/07/how-to-multiply-two-matrices-in-c.html