



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、课后练习题答案Chapter 11.1 xVxWxVxxV1.2 b c1.3 ad1.4 semicolon printf math 、 h nChapter 22、1 xVxxWxVxxVx2、2 typedef 255 external constChapter 33、1 xVxxWxxxWV3、2 integer modula 6 logical sizeof paratheses typeconversion precedence3、3 F F T F F F3、4 F T T T F3、5 (b) (c)3、6 0 -2 7 10、 25 false 3 3 13、10 0 1 1
2、 1 13、 11d1003、 121101113、 13 13、 14 2003、 15 x=y3、 16 TRUE3、 192143、20-4040Chapter 44、14、2 %hd %x ctype、h %l %*d A blank 6 - %e4、4 (a) scanf(“%d %c %d”, &a, &b, &c); (b)scanf(“%d %f %s”, &a, &b, &c);(c) scanf( “%d-%d-%d”, &a, &b, &c); (d) scanf(“%d %s %d” , &a, &b, &c);4、5 (a)10x1 、230000 (b)1234x1
3、、 23(c)1234 456、000000(d)“ 123、40 ” (e) 1020 1222( 乱码 )4、7 (a)1988 x (b)乱码 (c)120 乱码 (d) 乱码 x4、8 (a)1275 -235 、 740000(b) 1275-235 、 740000(c) 0 0 、 000000(d) 1275xxxx-235、 74(e) Cambridge(f) 1275 Cambridge4、10 1988 无 无Chapter 55、1 VxVxxxxxxV5、2 & switch break if-else x=y5、4 (a)x = 2; y = 0; (b) x =
4、 1; y = 0;5、5 (a) if (grade = 50)second = second + 1;(b) if (number 100) printf( “ out of range”);else if (number 200) printf(“ admitted ”);else if (M 60)if (M 60) printf( “ admitted ” );else printf(“ not admitted ”);5、6 F T F T5、8 (a) x 10 (b) (x != 10)|(y ! = 5) | (z = 0)(c) (x + y != z) | (z 5) (
5、d) (x 5) | (y != 10) | (z = 5)5、9 (a) x = 5; y = 10; z = 1 (b) x = 5; y = 10; z = 1(c) x = 5; y = 0; z =0 (d)无变化5、 10 (a) x= 0; y = 2; z = 0; (b) x = 1; y = 2; z = 0;5、 12 85、 13 Delhi Bangalore END5、 1424485、 15 0 0 25、 16 255、 17 Number is negative5、 18 ABC5、19 105、 20 无输出Chapter 66、1 VVVxxVxVVx6、
6、2 n continue infinite indefinite-repetition-loop counter-variable6、9 43210 (b)4321 (c)5555555555(d)10 86、11 (a)无数次 x = 10; x = 5; x = 10; x = 5; x = 10;(b) 5 次 m = 3, m = 5, m = 7, m = 9, m = 11(c) 无数次 , i 恒为 0(d) 4 次 m = 11 n = 9; m = 12 n = 11; m = 13, n = 13; m = 14, n = 15;6、13(a) for (n = 1; n
7、= 32; n = n * 2) printf(%d , n);(b) for (n = 1; n = 243; n = n * 3) printf(%d , n);(c) for (n = -4; n = 4; n = n + 2) printf(%d , n);(d) sum = 0;for (i = 2; i = 16; i = sum)sum = sum + i;n = n - i;printf(%d %d %d n, i, sum, n);6、16 100 90 80 70 60 50 40 30 20 10 06、17 m = 20 时陷入死循环 , 程序无输出6、 18 16、1
8、9 16、 20 死循环 , 延长时间用Chapter 77、1 VxVxxWWxxV7、2 index/subscript run-time dynamic multi-dimensional sorting7、14 157、15 HLOWRDChapter 88、1 xWVxVxxVxxxVxV8、2 % a-z,A-Z strcpy 3 stdlib gets strlen strstr strcmp s1-s2 puts8、6 (a) The sky is the limit、(b) The sky is(c) T(d) The sky is the limit(e) 84104101
9、32115107121321051153211610410132108105109105116(f) 输出1 2 3 4 5 6 7 8 921这些ASCII码对应的字符,无显示符号(g) %(h) U8、7 (d)8、 8 78、9 (a)he(b)heorshe(c)5 78、 11 puneChapter 99、1 VxxxVxxxWVxxxVxWxx9、2 actual-parameter local-variable int data-type variable-name scope recursive static type auto9、8 abceg9、9 abcdeg9、 12 (a) 5 (b) 4 (c)3 (d)09、 13 (a) 5 4 4 0 (b) 5、 0 4 、 0 3 、 0 0 、 679、 14 题目错 , 设 z =
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年塑料成型件项目可行性研究报告
- 2025年硬聚氯乙烯产品项目可行性研究报告
- 中国视频系统行业发展监测及投资战略咨询报告
- 中国联苯菊酯原药项目投资可行性研究报告
- 2025年预绞式成路器材项目可行性研究报告
- 2020-2025年中国SPA馆行业市场前景预测及投资战略研究报告
- 中国可剥涂料行业市场发展现状及投资规划建议报告
- 中国纯质纸行业投资分析及发展战略研究咨询报告
- 2025年劳护服行业深度研究分析报告
- 2025年饲料用油项目投资可行性研究分析报告
- 路基换填级配碎石施工方案
- EIM Book 1 Unit 7 Learning languages单元检测试题
- 四川省政府采购评审专家考试题库
- GB/T 34875-2017离心泵和转子泵用轴封系统
- GB/T 25085.3-2020道路车辆汽车电缆第3部分:交流30 V或直流60 V单芯铜导体电缆的尺寸和要求
- GA/T 1081-2020安全防范系统维护保养规范
- 2023一年级下册语文教学工作计划(2篇)
- 2022年云上贵州大数据(集团)有限公司招聘笔试试题及答案解析
- (虎符铜砭刮痧)基本理论及临床应用课件
- 文件袋、档案袋密封条模板
- 依图科技业务概述
评论
0/150
提交评论