I am trying to see how to use C to check if two 2d arrays are symmetrical/mirror to each other.
So for example, if
array1 = { { 2, 5, 10 }, { 2, 1, 9 } };
array2 = { { 10, 5, 2 }, { 9, 1, 2 } };
The arrays are really 2d arrays.
How should I approach this? So far I tried to read both 2d arrays and use if/else statements and a bool to check if both arrays are equal to each other or not. But I'm not sure how to check if they are mirror matrices of each other or not.
2 5 10 | 10 5 2
2 1 9 | 9 1 2
The compiler is from 89.