How to judge whether two matrices are equal in C language
This article mainly introduces the relevant knowledge of c language how to judge whether two matrices are equal, the content is detailed and easy to understand, the operation is simple and quick, and has certain reference value. I believe you will gain something after reading this article on how to judge whether two matrices are equal in c language. Let's take a look.
The code is as follows:
# includevoid input (int n, int m, int a [20] [20]) / / enter matrix elements {int I, j; for (I = 0; I < n; iDiffect +) {for (j = 0; j < m; jacks +) {scanf ("% d", & a [I] [j]) } void in (int n, int m, int b [20] [20]) / / enter another matrix element {int I, j; for (I = 0; I < n; iFix +) {for (j = 0; j < m; jacks +) {scanf ("% d", & b [I] [j]) } void output (int n, int m, int a [20] [20]) / / arrange matrix elements {int I, j; for (I = 0; I