单选题 C语言
题号 #2253183


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

进入在线模考

参考答案

C

答案解析


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

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考