Driver Code
int main ( ) { int mat [ ] [ 6 ] = { { 1 , 2 , 3 , 4 , 5 , 6 } } ; int A = 2 ; int B = 3 ; int N = sizeof ( mat ) / sizeof ( mat [ 0 ] ) ; int M = sizeof ( mat [ 0 ] ) / sizeof ( int ) ; ConstMatrix ( ( int * ) mat , N , M , A , B ) ; return 0 ; }