void local(void);
void staticVar(void);
int main(void)
{
int i;
for (i = 0; i < 3; i++)
{
local();
staticVar();
}
return 0;
}
void local(void)
{
int count = 1;
printf("local() 함수가 %d 번째 호출되었습니다.\n", count);
count++;
}
void staticVar(void)
{
static int static_count = 1;
printf("staticVar() 함수가 %d 번째 호출되었습니다.\n", static_count);
static_count++;
}