标准C语言程序设计第五版课后练习题答案

上传人:飞*** 文档编号:16482470 上传时间:2017-11-07 格式:DOCX 页数:4 大小:19.35KB
返回 下载 相关 举报
标准C语言程序设计第五版课后练习题答案_第1页
第1页 / 共4页
标准C语言程序设计第五版课后练习题答案_第2页
第2页 / 共4页
标准C语言程序设计第五版课后练习题答案_第3页
第3页 / 共4页
标准C语言程序设计第五版课后练习题答案_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《标准C语言程序设计第五版课后练习题答案》由会员分享,可在线阅读,更多相关《标准C语言程序设计第五版课后练习题答案(4页珍藏版)》请在金锄头文库上搜索。

1、课后练习题答案Chapter 11.1 1.2 b c 1.3 ad1.4 semicolon printf math.h n Chapter 22.1 2.2 typedef 255 external const Chapter 33.1 3.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 1 3.10 0 1 1 1 13.11 d1003.12 1101113.13

2、13.14 2003.15 x= 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) (d) (x 5) | (y != 10) |

3、 (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.14 24485.15 0 0 25.16 255.17 Number is negative5.18 ABC5.19 105.20 无输出Chapter 66.1 6.2 n continue infinite indefinite-repet

4、ition-loop counter-variable6.9 (a) 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 = 32; n = n * 2) printf(%d , n);(b)for (

5、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.19 16.20 死循环,延长时间用Chapter 77.1 7.2 index/subs

6、cript run-time dynamic multi-dimensional sorting 7.14 157.15 HLOWRDChapter 88.1 8.2 % a-z,A-Z strcpy 3 stdlib gets strlen strstr strcmp s1-s2 puts 8.6 (a) The sky is the limit.(b) The sky is(c) T(d) The sky is the limit(e)8410410132115107121321051153211610410132108105109105116(f)输出 1 2 3 4 5 6 7 8 9

7、21这些 ASCII码对应的字符,无显示符号(g)%(h)U8.7 (d)8.8 78.9 (a)he(b)heorshe(c)5 78.11 puneChapter 99.1 9.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 = 5;结果为:200 10009.15 1009.16 x = 3; y = 0Chapter 1010.1 10.2 typedef union tag_name pointer memberChapter 1111.1 11.2 address * * 0 null

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 资格认证/考试 > 其它考试类文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号