单选题 C语言
题号 #2064385

执行语句X=(a=10,b=a--.后,x、a、b的值依次为(  )。

进入在线模考

参考答案

D

答案解析

表达式a一一的值为10,a的值递减为9,所以b=10,x的值为逗号表达式的值,x=10。因此x=10,a=9.b=10。

你可能感兴趣的试题

A.a+1=a+1  
B.a=b==0
C.(Char.(100+100.
D.7<=X<60
A.i++;  
B.nl=(n2=(n3=0..;
C.m+n=1;
D.i=k==j;
A.*m = &n;scanf("%lf",m);
B.m = (double * ) malloc(10);scanf("%f",m);
C.m = &n;scanf("%lf",n);
D.m = &n;scanf("%le",m);
找试题 · 找答案 · 找资料 在线模考