#include <stdio.h>
int det(int* a, int n, int sz){
printf("a[%d][%d]\n", sz
/n
/sizeof(*a
), n
); *(a+5*n+15) += 50;
return 0;
}
#define ARY_N 20
int main(){
int a[10][ARY_N];
a[5][15] = 100;
det(&a[0][0], ARY_N, sizeof(a));
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiAKaW50IGRldChpbnQqIGEsIGludCBuLCBpbnQgc3opewogICBwcmludGYoImFbJWRdWyVkXVxuIiwgc3ovbi9zaXplb2YoKmEpLCBuKTsKICAgKihhKzUqbisxNSkgKz0gNTA7CiAgIHJldHVybiAwOwp9CgojZGVmaW5lIEFSWV9OIDIwCgppbnQgbWFpbigpewogICBpbnQgYVsxMF1bQVJZX05dOwogICBhWzVdWzE1XSA9IDEwMDsKICAgZGV0KCZhWzBdWzBdLCBBUllfTiwgc2l6ZW9mKGEpKTsKICAgcHJpbnRmKCIlZFxuIiwgYVs1XVsxNV0pOwogICByZXR1cm4gMDsKfQ==