单项选择题
以下程序的输出结果是( )。
main()
int a=4,b=5,c=0,d;
d=!a&&!b||!c:
printf("%d\n",d);
A.1
B.0
C.非0的数
D.-1
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
已知:intx,y;double z;,则以下语句中错误的函数调用是( )。
A.scanf("%d,%1x,%1e",&x,&y,&z);
B.scanf("%2d*%d%1f",&x,&y,&z);
C.scanf("%x%*d%o",&x,&y);
D.scanf("%x%o%6.2f",&x,&y,&z);
点击查看答案
单项选择题
若有以下定义和语句: int s[4][5],(*ps)[5]; ps=s; 则对s数组元素的正确引用形式是( )。
A.ps+1
B.*(ps+3)
C.ps[0][2]
D.*(ps+1)+3
点击查看答案
相关试题
有以下程序: struct STU charname[1...
有以下程序: void sort(int a[],in...
有以下程序: #include <stdio.h> v...
下面程序的输出结果是( )。 #include...
有以下程序: #include <stdio.h> v...