#include <stdio.h>
int main(void) {
int a, b, *p, *q;
a = 3; b = 5;
p = &a; q = &b;
printf("a:%d b:%d *p:%d *q:%d\n", a
, b
, *p
, *q
); a++;
printf("a:%d b:%d *p:%d *q:%d\n", a
, b
, *p
, *q
); *p += 2;
printf("a:%d b:%d *p:%d *q:%d\n", a
, b
, *p
, *q
); *q += 3;
printf("a:%d b:%d *p:%d *q:%d\n", a
, b
, *p
, *q
); b += 2;
printf("a:%d b:%d *p:%d *q:%d\n", a
, b
, *p
, *q
); p = q;
printf("a:%d b:%d *p:%d *q:%d\n", a
, b
, *p
, *q
); b = 0;
printf("a:%d b:%d *p:%d *q:%d\n", a
, b
, *p
, *q
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgYSwgYiwgKnAsICpxOwoKICAgIGEgPSAzOyBiID0gNTsKICAgIHAgPSAmYTsgcSA9ICZiOwogICAgcHJpbnRmKCJhOiVkIGI6JWQgKnA6JWQgKnE6JWRcbiIsIGEsIGIsICpwLCAqcSk7CiAgICBhKys7CiAgICBwcmludGYoImE6JWQgYjolZCAqcDolZCAqcTolZFxuIiwgYSwgYiwgKnAsICpxKTsKICAgICpwICs9IDI7CiAgICBwcmludGYoImE6JWQgYjolZCAqcDolZCAqcTolZFxuIiwgYSwgYiwgKnAsICpxKTsKICAgICpxICs9IDM7CiAgICBwcmludGYoImE6JWQgYjolZCAqcDolZCAqcTolZFxuIiwgYSwgYiwgKnAsICpxKTsKICAgIGIgKz0gMjsKICAgIHByaW50ZigiYTolZCBiOiVkICpwOiVkICpxOiVkXG4iLCBhLCBiLCAqcCwgKnEpOwogICAgcCA9IHE7CiAgICBwcmludGYoImE6JWQgYjolZCAqcDolZCAqcTolZFxuIiwgYSwgYiwgKnAsICpxKTsKICAgIGIgPSAwOwogICAgcHJpbnRmKCJhOiVkIGI6JWQgKnA6JWQgKnE6JWRcbiIsIGEsIGIsICpwLCAqcSk7CiAgICByZXR1cm4gMDsKfQ==