题目内容

设x=2,y=3,z=4,k=5,则表达式“x

A. 1
B. 2
C. 3
D. 4

查看答案
更多问题

程序代码如下: #include int main(){int a,b;printf("please input a and b:\n");scanf("%d%d",&a,&b);printf("the output data is %d\n",a7<回车>则程序输出为

A. the output data is 0
B. the output data is 1
C. the output data is 2
D. the output data is 7

下列复合语句中,不能实现两数交换的是

A. { b = a * b; a = b / a; b = b / a; }
B.{ a=b; b=a; }
C.{ t=a; a=b; b=t; }
D.{ a = a + b; b = a – b; a = a – b; }

main(){inta=2,b=-1,c=2;if(a==b) c--;elsec++;printf("%d\n",c);}

A. 0
B. 1
C. 2
D. 3

有以下程序intx=1,y=2,z=3;if(x>y)if(y)printf("%d",y);elseprintf("%d",++y);printf("%d\n",x++);程序的运行结果是()

A. 1
B. 41
C. 2
D. 331

答案查题题库