Skip to content

Commit ef83e2c

Browse files
authored
Update transposematrix.c
1 parent 9e71160 commit ef83e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transposematrix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void main()
2525
{
2626
for (j = 0; j < m; j++)
2727
{
28-
b[i][j] = a[j][i];
28+
b[i][j] = a[j][i]; //b[j][i] = a[i][j]; is also correct
2929
}
3030
}
3131

0 commit comments

Comments
 (0)