#include <stdio.h>
#include <stdlib.h>
void teste1(int m, int n, float t1[m][n]) {
for (int i = 0; i < 8; i++) {
printf("%f\t", t1
[i
% 4 ][i
/ 4]); }
}
int main() {
float t1[4][2];
for (int i = 0; i < 8; i++) {
t1[i % 4][i / 4] = i + 1;
}
teste1(4, 2, t1);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCnZvaWQgdGVzdGUxKGludCBtLCBpbnQgbiwgZmxvYXQgdDFbbV1bbl0pIHsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgODsgaSsrKSB7CiAgICAgICAgcHJpbnRmKCIlZlx0IiwgdDFbaSAlIDQgXVtpIC8gNF0pOwogICAgfQp9CmludCBtYWluKCkgewogICAgZmxvYXQgdDFbNF1bMl07CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDg7IGkrKykgewogICAgICAgIHQxW2kgJSA0XVtpIC8gNF0gPSBpICsgMTsKICAgIH0KICAgIHRlc3RlMSg0LCAyLCB0MSk7CiAgICBnZXRjaGFyKCk7CiAgICByZXR1cm4gMDsKfQ==