fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void teste1(float t1[4][2]) {
  5. for (int i = 0; i < 8; i++) printf("%f\t", t1[i % 4 ][i / 4]);
  6. }
  7. int main() {
  8. float t1[4][2];
  9. for (int i = 0; i < 8; i++) t1[i % 4][i / 4] = i + 1;
  10. teste1(t1);
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/43948/101
Success #stdin #stdout 0s 4436KB
stdin
Standard input is empty
stdout
1.000000	2.000000	3.000000	4.000000	5.000000	6.000000	7.000000	8.000000