以下程序段运行后的输出结果是()。 int x=1,y=0; if(!x) y++; else if(x==0) if (x) y+=2; else y+=3; printf("%d\n",y);
A.3
B.2
C.1
D.0
A.3
B.2
C.1
D.0
第2题
#include
main()
{ int x=1,y=0;
if(!x) y++;
else if(x==0)
if (x) y+=2;
else y+=3;
printf("%d\n",y);
}
程序运行后的输出结果是
A.3
B.2
C.1
D.0
第3题
A.3
B.2
C.1
D.0
第4题
#include <stdio.h>
main()
{ int x=1,y=0;
if(!x) y++;
else if(x==0)
if (x) y+=2;
else y+=3;
printf("%d\n",y);
}
程序运行后的输出结果是
A)3
B)2
C)1
D)0
第5题
main()
{int x=2,y=-1,z=2;
if(x<y)
if(y<0)z=0;
else z+=1:
printf("%d\n",z);
}
A.3 B.2 C.1 D.0
第6题
#inclUde<stdio.h>
main()
{int x=1。y=0;
if(!x)y++;
else if(x==0)
if(x)y+=2;
else y+=3; .
printf(“%d\n”,y);
}
程序运行后的输出结果是
A.3
B.2
C.1
D.0
第7题
#inclUde<stdio.h>
main()
{int x=1。y=0;
if(!x)y++;
else if(x==0)
if(x)y+=2;
else y+=3; .
printf(“%d\n”,y);
}
程序运行后的输出结果是
A.3
B.2
C.1
D.0
第8题
inc]udc
main()
{int x=10.y=20.t=0;
if(x==y) t=x;x=y;y=1;
printf(“%d %d/n”.x,y);
第9题
第10题
main ( )
{ int x=10,y=-5, z=12;
if (x<y)
if (y<0) z=0;
else z+=1 ;
print f ( "%d\n" , z) ;
}
(A)0 (B)12 (C)13 (D)10
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!