#include <stdio.h>
int main()
{
int a = 20;
int score = a + 100;
printf("%d\n", score);
{
int score = 50;
{
score = 10;
printf("%d\n", score);
}
a = 10;
}
{
score = a + 250;
int score = 30;
printf("%d", score);
}
printf("%d\n", score);//为何是260,不是120,应该是输出全局变量120
return 0;
} |
|