Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83d0350

Browse files
Merge pull request #10 from razzat008/master
FIXED: uncommented printf function
2 parents 78077ba + bab39b8 commit 83d0350

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.exe
2+
*.out
23
*.o

‎Array Questions/matrix_multiplication.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ int main(int argc, char *argv[]) {
1919
exit(EXIT_FAILURE);
2020
} else {
2121
if (column1 != row2) {
22-
// check to see if the number of rows of first matrix is equal to the
23-
// number of columns of second matrix;
22+
// check to see if the number of column of first matrix is equal to the
23+
// number of rows of second matrix;
2424
printf("Number of column of first matrix must be equal the row of second "
2525
"matrix.\n");
2626
exit(EXIT_FAILURE);
@@ -69,7 +69,7 @@ int mult_matrix(int row1, int column1, int row2, int column2) {
6969
}
7070

7171
// muliplied matrix
72-
// printf("Result of the product of those two matrixes\n");
72+
printf("Result of the product of those two matrixes\n");
7373
for (int i = 0; i < row1; i++) {
7474
for (int j = 0; j < column2; j++) {
7575
printf("%d\t", result[i][j]);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /