Originally Posted by
quzah
Code:
for each row
for each column
if this spot in one is not equal to this spot in the other
return failure
return true
Something like that is what you're looking for.
Quzah.
Is it something like this?
Code:
#include <stdio.h>
int main()
{
int check_matrix_equality( int A[Ra][Ca], int B[Rb][Cb])
{
int i, j,;
int matrix [2] [3];
for (i = 0; i<2; i++)
for (j = 0; j < 3; j++)
if (A[Ra][Ca] ==B[Rb][Cb])
printf( "They are the Same "\n)
else
printf("They are not the same"\n)
return 1;
}
return 0;
}