/* 通用範囲を確認するプログラム */
#include <stdio.h>
void func1(void);
void func2(void);

int x = 100;

int main(void)
{
	int n = 1;

	printf("main1 n = %d  x = %d\n", n, x);
	func1();
	func2();
	printf("main2 n = %d  x = %d\n", n, x);

	return 0;
}

void func1(void)
{
	int n = 2, x = 123;
	printf("func1 n = %d  x = %d\n", n, x);
}

int y = 456;
void func2(void)
{
	int n = 3;
	printf("func2 n = %d  x = %d  y = %d\n", n, x, y);
	x++;
}
