fork(1) 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++) {
  6. printf("%f\t", t1[i % 4 ][i / 4]);
  7. }
  8. }
  9. int main() {
  10. float t1[4][2];
  11. for (int i = 0; i < 8; i++) {
  12. t1[i % 4][i / 4] = i + 1;
  13. }
  14. teste1(t1);
  15. return 0;
  16. }
Success #stdin #stdout 0s 2252KB
stdin
Standard input is empty
stdout
1.000000	2.000000	3.000000	4.000000	5.000000	6.000000	7.000000	8.000000