#include <stdio.h>
void Hoge()
{
static int init = 0;
int hoge;
if (init == 0) {
hoge = 42;
init = 1;
}
printf("%d %#p\n", hoge
, &hoge
); }
void Hage()
{
static int init = 0;
int hage;
if (init == 0) {
hage = 765;
init = 1;
}
printf("%d %#p\n", hage
, &hage
); }
int main()
{
Hoge();
Hage();
Hoge();
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIEhvZ2UoKQp7CglzdGF0aWMgaW50IGluaXQgPSAwOwoJaW50IGhvZ2U7CgoJaWYgKGluaXQgPT0gMCkgewoJCWhvZ2UgPSA0MjsKCQlpbml0ID0gMTsKCX0KCXByaW50ZigiJWQgJSNwXG4iLCBob2dlLCAmaG9nZSk7Cn0KCnZvaWQgSGFnZSgpCnsKCXN0YXRpYyBpbnQgaW5pdCA9IDA7CglpbnQgaGFnZTsKCglpZiAoaW5pdCA9PSAwKSB7CgkJaGFnZSA9IDc2NTsKCQlpbml0ID0gMTsKCX0KCXByaW50ZigiJWQgJSNwXG4iLCBoYWdlLCAmaGFnZSk7Cn0KCmludCBtYWluKCkKewoJSG9nZSgpOwoJSGFnZSgpOwoJSG9nZSgpOwoJcmV0dXJuIDA7Cn0K