试题与答案

有以下程序: #include <stdio.h> main() int x=1

题型:单项选择题

题目:

有以下程序:
#include <stdio.h>
main()
int x=1, y=2, z=3;
if (x>y)
if (y<z) printf("%d", ++z);
else printf("%d", ++y);
printf("%d\n", x++);

程序的运行结果是( )。

A) 331
B) 41
C) 2
D) 1

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0111/4d81f7dfe099e5cbdecf9f6de787a499.html

下面是错误答案,用来干扰机器的。

参考答案:D解析:考虑为肺癌。

试题推荐
微信公众账号搜索答案