#include <stdio.h>
struct hoge {
int a[10];
};
void func(hoge &h);
int main(){
hoge h;
h.a[0] = 0;
func(h);
printf("%d\n", h.a[0]);
}
void func(hoge &h){
h.a[0] = 42;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdHJ1Y3QgaG9nZSB7CglpbnQgYVsxMF07Cn07Cgp2b2lkIGZ1bmMoaG9nZSAmaCk7CgppbnQgbWFpbigpewoJaG9nZSBoOwoKCWguYVswXSA9IDA7CglmdW5jKGgpOwoJcHJpbnRmKCIlZFxuIiwgaC5hWzBdKTsKfQoKdm9pZCBmdW5jKGhvZ2UgJmgpewoJaC5hWzBdID0gNDI7Cn0K