#include <stdio.h>
int main()
{
int a = 20;
int score = a + 100;
printf("%d\n",score); // 120
{
int score = 50;
{
score = 10;
printf("%d\n",score);//10
}
a = 10;
}
{
score = a + 250;
int score = 30;
printf("%d",score);
}
//无效
printf("%d\n",score);
return 0;
}
第一个printf输出,值为 score = a + 100 = 120
第二个printf输出,score = 10
第三个printf输出为哪个??值是怎么来的?? |
|