Product of two matrix in C program

//product of two matrix #include <stdio.h> #define MAXROWS 10 #define MAXCOLS 10 void readMatrix(int arr[][MAXCOLS], int m, int n); void printMatrix(int arr[][MAXCOLS], int m, int n); void productMatrix(int array1[][MAXCOLS], int array2[][MAXCOLS], int array3[][MAXCOLS], int m, int n); main() { int …

Read More........

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; } } printf("TRANSPOSE of Matrix\n"); for(i=0;i<ROWS;i++) { for(j=0;j<COLS;j++) printf("%d",a[i][j]); printf("\n"); } …

Read More........