# Write a program in c to find the largest no out of a matrix of order mn?

/* using ellipses (...) to indicate tabs for clarity */

double largest (double *array, int M, int N) {

... int i, j;

... double *element;

... double answer = array[0][0];

... for (i=0; i<M; i++) {

... ... for (j=0; j<N; j++) {

... ... ... element = array + i*M + j;

... ... ... if (*element > answer) answer = *element;

... ... }

... }

... return answer;

}

### What is the chronological order of animatrix?

This is what I believe the chronological order of the Animatrix is: 1. The second renaissance part 1 2. The second renaissance part 2 3. A detective story a. The Matrix 4. Beyond 5. World Record 6. Matriculated 7. Kids story 8. Program 9. Final flight of the Osiris b. The Matrix Reloaded c. The Matrix Revolutions d. The Matrix Online

### How do you write a C program to find the transpose of a matrix?

Sorry to delete the previous version of this program, but this one is much more concise and sophisticated. I have written this program for a 3*3 matrix, but if you want to change it, just enter additional variables to store the order of the matrix and then replace the "3"s of the program with them as needed. It's easy. So here we go: #include<stdio.h> #include<math.h> void swap(int *x,int *y); main() { int i,j,k,m,n; int matrix[3][3]…

### Write a program on Trace of matrix in C?

#include<stdio.h> void main() { int a[6][6],n,n1,i,sum=0; printf("Enter the order of the matrix"); scanf("%d %d"'&n,&n1); if(n==n1) { printf("Enter the matrix"); for(i=0;i<n;i++) for(j=0;j<n;j++) scanf("%d",&a[i][j]); printf("The matrix is\n"); for(i=0;i<n;i++) { for(j=0;j<n;j++) printf("%d\t",a[i][j]); printf("\n"); } for(i=0;i<n;i++) sum+=a[i][i]; printf("Trace of the matrix is=%d",sum); } else printf("Enter a square matrix\n"); } Other than the fact that the program given will fail for a square matrix which is more than 6x6 (either with odd results or probably a sigsegv) and will fail…