#include <stdio.h>
void compare(int, int*);
main() {
int i = 4, j = 5;
compare(i, &j);
printf("i=%d, j=%d\n", i, j);
}
void compare(int k, int* m) {
printf("k1=%d, *m1=%d", k, *m);
k++;
(*m)++;
printf("k2=%d, *m2=%d\n", k, *m);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CnZvaWQgY29tcGFyZShpbnQsIGludCopOyAKbWFpbigpIHsgCiAgICBpbnQgaSA9IDQsIGogPSA1OwogICAgY29tcGFyZShpLCAmaik7CiAgICBwcmludGYoImk9JWQsIGo9JWRcbiIsIGksIGopOyAKfQoKdm9pZCBjb21wYXJlKGludCBrLCBpbnQqIG0pIHsKICAgIHByaW50ZigiazE9JWQsICptMT0lZCIsIGssICptKTsKICAgIGsrKzsKICAgICgqbSkrKzsgCiAgICBwcmludGYoImsyPSVkLCAqbTI9JWRcbiIsIGssICptKTsKfQo=