- 113
- 0
- 约8.9千字
- 约 51页
- 2016-12-29 发布于湖北
- 举报
以下程序的输出结果是()。 #include ”stdio.h” main() { int a=5, b=4, c=6, d; printf(”%d\n”, d=ab? ac?a:c :b); } 以下程序的运行结果是()。 #include ”stdio.h” main() { int a=2,b= -1,c=2; if (ab) if (b0) c=0; else c++; printf(”%d\n”,c); } 4.7 switch语句 有以下程序,若输入为字符s,则程序运行结果为() #include stdio.h main() { char ch; ch=getchar(); switch (ch) { case a: printf(a=%c\n,ch); default: printf(end!\n); case b: printf(b=%c\n,ch); case c: printf(c=%c\n,ch); } } 执行下列程序,输入为3的数出结果是()。 #include stdio.h main() { int k; scanf(%d, k); switch(k) { case 1: printf(%d\n, k++); case 2: printf(%d\n, k++); case 3: printf(%d\n, k
您可能关注的文档
最近下载
- 变频器技术考试题及答案.docx VIP
- 重症患者的肠内营养护理.pptx VIP
- 输液泵操作评分标准.doc VIP
- 青少年焦虑症护理查房.pptx VIP
- 试析《三国演义》在日本动漫中的传播与接受.pdf VIP
- 从吉川英治《三国志》看《三国演义》在日本的传播与接受The Spread and Reception of the Romance of the “Three Kingdoms” in Japan from the “Three Kingdoms” by Yoshikawa Eiji-来源:现代语言学(第2022002期)-汉斯出版社.pdf VIP
- 与总承包单位协调配合措施方案.docx VIP
- 《清静经》全文及译文.pdf VIP
- 与总承包单位协调配合措施方案.docx VIP
- 线线角、线面角、面面角专题.pdf VIP
原创力文档

文档评论(0)