#include <stdio.h>
typedef struct{
int x, y, z;
} Coordinate;
void add(Coordinate *p);
int main(void) {
Coordinate a = {1,2,3};
printf( "%d %d %d\n", a.
x, a.
y, a.
z ); add(&a);
printf( "%d %d %d\n", a.
x, a.
y, a.
z );
return 0;
}
void add( Coordinate *p ){
p->x++;
p->y++;
p->z++;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdHsKCWludCB4LCB5LCB6Owp9IENvb3JkaW5hdGU7Cgp2b2lkIGFkZChDb29yZGluYXRlICpwKTsKCmludCBtYWluKHZvaWQpIHsKCglDb29yZGluYXRlIGEgPSB7MSwyLDN9OwoKCXByaW50ZiggIiVkICVkICVkXG4iLCBhLngsIGEueSwgYS56ICk7CglhZGQoJmEpOwoJcHJpbnRmKCAiJWQgJWQgJWRcbiIsIGEueCwgYS55LCBhLnogKTsKCglyZXR1cm4gMDsKfQoKdm9pZCBhZGQoIENvb3JkaW5hdGUgKnAgKXsKCXAtPngrKzsKCXAtPnkrKzsKCXAtPnorKzsKfQ==