注释把 b 赋值给包括了,其实没给 b 赋值,所以是等于十🌚
22.以下程序执行的结果是
#include
void main()
{
int a=0,b=0;
a=10;
/*给a赋值*/
b=20;
/*给b赋值*/
printf("a+b=%d\n",a+b);
/*输出计算结果*/
}
A.a+b-10
B.a+b=30
C.30
D、出错
#include
void main()
{
int a=0,b=0;
a=10;
/*给a赋值*/
b=20;
/*给b赋值*/
printf("a+b=%d\n",a+b);
/*输出计算结果*/
}
A.a+b-10
B.a+b=30
C.30
D、出错
离谱
注释把 b 赋值给包括了,其实没给 b 赋值,所以是等于十🌚
什么神人题目



粤ICP备2023068874号

