transpose of matrix in C Program
//transpose of matrix //transpose of matrix #include<stdio.h> #include<conio.h> #define ROWS 3 #define COLS 3 int main(void) { int a[ROWS][COLS]={{1,2,3},{4,5,6},{7,8,9}}; int i,j,tmp; for(i=1;i<ROWS;i++) { for (j=0;j<COLS;j++) { tmp=a[i][j]; a[i][j]=a[j][i]; a[j][i]=tmp; } …
transpose of matrix in C Program Read More