Skip to content

Commit 5b4374c

Browse files
authored
Update 01 Diagonal matrix.c
1 parent b9558fa commit 5b4374c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Matrix/01 Diagonal matrix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ int main ()
3838
{
3939
struct matrix m;
4040
m.n=4;
41-
set (&m,1,1,5);set(&m,2,2,7);set(&m,3,3,8);set(&m,4,4,1);set (&m,5,5,2);
41+
set (&m,1,1,5);set(&m,2,2,7);set(&m,3,3,8);set(&m,4,4,1);set (&m,5,5,2); // passing argument to diag matrix
42+
printf("%d \n",Get(m,2,2)); // for slicing matrix
4243
Display(m);
4344
return 0;
4445
}

0 commit comments

Comments
 (0)