单项选择题
设有如下定义: int x=10,y=3,z;
则语句printf("%d\n",z=(x%y,x/y));的输出结果是()。
A.1
B.0
C.4
D.3
点击查看答案
相关考题
-
单项选择题
以下程序的输出结果是()。 #define f(x) x*x c=f(a)/f(b); main() printf(“%d\n”,c); {int a=6,b=2,c; }
A.9
B.6
C.36
D.1 -
单项选择题
分析以下程序的输出结果是()
A. 2,3
B. 2,2
C. 3,2
D. 2,4 -
单项选择题
以下程序的输出结果是()。 char str[15]=”hello!”; printf(“%d\n”,strlen(str));
A. 15
B. 14
C. 7
D. 6