#include <stdio.h>
typedef struct{
int x, y, z;
} struct_a;
void add(struct_a *r){
r->x++;
}
int main(void) {
struct_a s1 = {1,2,3},s2,*s3;
s2=s1;
s3=&s1;
add(&s1);
printf( "s1=%d %d %d\n", s1.
x, s1.
y, s1.
z ); printf( "s2=%d %d %d\n", s2.
x, s2.
y, s2.
z ); printf( "s3=%d %d %d\n", s3
->x
, s3
->y
, s3
->z
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdHsKCWludCB4LCB5LCB6Owp9IHN0cnVjdF9hOwoKdm9pZCBhZGQoc3RydWN0X2EgKnIpewoJci0+eCsrOwp9CgppbnQgbWFpbih2b2lkKSB7CgoJc3RydWN0X2EgczEgPSB7MSwyLDN9LHMyLCpzMzsKCXMyPXMxOwoJczM9JnMxOwoJYWRkKCZzMSk7CgoJcHJpbnRmKCAiczE9JWQgJWQgJWRcbiIsIHMxLngsIHMxLnksIHMxLnogKTsKCXByaW50ZiggInMyPSVkICVkICVkXG4iLCBzMi54LCBzMi55LCBzMi56ICk7CglwcmludGYoICJzMz0lZCAlZCAlZFxuIiwgczMtPngsIHMzLT55LCBzMy0+eiApOwoJcmV0dXJuIDA7Cn0KCg==