/* kadai061 */
/* ポインタを使ったサンプルプログラム */
/* 2017.10.16 H.Arai */
#include <stdio.h>
int main(void) {
int a, b; /* 普通の変数 */
int *pa, *pb; /* ポインタ変数 */
a = 200;
b = 300;
pa = &a;
pb = &b;
*pa = a + b + 100;
*pb = *pa + *pb;
pb = pa;
*pa = *pa + a + b + 100;
return 0;
}
Lyoga2FkYWkwNjEgKi8KLyog44Od44Kk44Oz44K/44KS5L2/44Gj44Gf44K144Oz44OX44Or44OX44Ot44Kw44Op44OgICovCi8qIDIwMTcuMTAuMTYgSC5BcmFpICovCiNpbmNsdWRlIDxzdGRpby5oPgppbnQgbWFpbih2b2lkKSB7CmludCBhLCBiOyAvKiDmma7pgJrjga7lpInmlbAgKi8KaW50ICpwYSwgKnBiOyAvKiDjg53jgqTjg7Pjgr/lpInmlbAgKi8KYSA9IDIwMDsKYiA9IDMwMDsKcGEgPSAmYTsKcGIgPSAmYjsKKnBhID0gYSArIGIgKyAxMDA7CnByaW50ZigiYT0lZCBiPSVkIFxuIixhLGIpOwoqcGIgPSAqcGEgKyAqcGI7CnBiID0gcGE7CipwYSA9ICpwYSArIGEgKyBiICsgMTAwOwpwcmludGYoImE9JWQgYj0lZCBcbiIsYSxiKTsKcmV0dXJuIDA7Cn0=