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