{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


transposematrixc - int main int a[n[m ={1,2,3,4,5,6 int...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include<stdio.h> int f(int n, int m, int a[n][m], int t[m][n]) int f(int n,int m,int a[n][m],int t[m][n]){ int i,j for(i=0 i<n i++) { for(j=0 j<m j++) { t[j][i] = a[i][j] } } return a[i][j]
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } int main(){ int a[n][m] = {1,2,3,4,5,6} int t[m][n]=0 int i,j f(2,3,a,t) for(i=0 i<2 i++){ for(j=0 j<3 j++){ printf("%f", t[j][i]) } printf("\n") } return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online