1. 梳理笔记(原创!!!)
2.解析代码:分析每一步变量的取值
#include <stdio.h>
int main(int argc, char *argv[])
{
int a = 10; //a=10
int b = a--; //b=10
int c = a + b + 2; //a=9 b=10 c=21
int d = (b--) + (++c); //d=10+22=32 c=22 执行后b=9
printf("%d\n",d);
}
[单选题] B
A. d = 31 B. d = 32 C. d = 33 D. d = 34
3.
结果是 9
4.
选 D