全部题库 / C语言 / 试题详情
单选题 C语言
2013-08-05


执行下列程序中的输出语句后,a的值是(    )。
main()
{  int a;
printf("%d\n",(a=2*3,a*5,a+7));
}

A.17
B.37
C.6
D.13

参考答案

C

答案解析


本题考查逗号表达式。程序输出时输出一个%d,所以输出第一个a的值与后续无关。

你可能感兴趣的试题