Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created April 9, 2010 02:40
Show Gist options
  • Save abuiles/360827 to your computer and use it in GitHub Desktop.
Save abuiles/360827 to your computer and use it in GitHub Desktop.
#include <stdio.h>
extern void transpuesta();
int main(){
float t[2][4];
float f[4][2]= {{1,2},{3,4},{5,6},{7,8}};
transpuesta (4,2,f,t);
printf("\nTranspuesta \n");
for (int r =0 ; r < 2 ; r++ ){
for (int cr = 0; cr< 4; cr++){
printf("%f ",t[r][cr]);
}
printf("\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment