#include <stdio.h>
int main(void)
{
int i = 365, j = 100, result = i + j;
printf("i + j is %i\n", result);
int i = 100, j = 1;
printf("i + j is %i\n", result);
return 0;
}
9.c:10:10:错误:声明遮蔽了局部变量 [-Werror,-Wshadow] 9.c:8:9:错误:重新定义了“i”