好文档 - 专业文书写作范文服务资料分享网站

C语言程序设计 现代方法 第二版 习题答案 C Programming_ A Modern Appr

天下 分享 时间: 加入收藏 我要投稿 点赞

精品文档

Chapter 2

Answers to Selected Exercises

2. [was #2] (a) The program contains one directive (#include) and four statements (three calls of printf and one return).

(b)

Parkinson's Law:

Work expands so as to fill the time available for its completion.

3. [was #4]

#include

int main(void) {

int height = 8, length = 12, width = 10, volume;

volume = height * length * width;

实用文档

精品文档

printf(\ printf(\

printf(\

return 0; }

4. [was #6] Here's one possible program:

#include

int main(void) {

int i, j, k; float x, y, z;

printf(\ printf(\ printf(\

printf(\

实用文档

精品文档

printf(\

实用文档

C语言程序设计 现代方法 第二版 习题答案 C Programming_ A Modern Appr

精品文档Chapter2AnswerstoSelectedExercises2.[was#2](a)Theprogramcontainsonedirective(#include)andfourstatements(threecallsofprintfandonereturn).(b
推荐度:
点击下载文档文档为doc格式
2eg881qx1v4n25q6ny0j2r4yi9c8on003xa
领取福利

微信扫码领取福利

微信扫码分享