《C語言程序設(shè)計-現(xiàn)代方法》第二版(呂秀鋒黃倩著)課后答案英文版
《C語言程序設(shè)計-現(xiàn)代方法》最主要的一個目的就是通過一種“現(xiàn)代方法”來介紹C語言。以下是由陽光網(wǎng)小編整理關(guān)于《C語言程序設(shè)計-現(xiàn)代方法》第二版(呂秀鋒黃倩著)課后答案英文版下載地址,希望大家喜歡!
點擊進(jìn)入:《C語言程序設(shè)計-現(xiàn)代方法》第二版(呂秀鋒黃倩著)課后答案英文版下載地址
《C語言程序設(shè)計-現(xiàn)代方法》第二版(呂秀鋒黃倩著)課后答案預(yù)覽
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 <stdio.h>
int main(void)
{
int height = 8, length = 12, width = 10, volume;
volume = height * length * width;
printf("Dimensions: %dx%dx%d\n", length, width, height);
printf("Volume (cubic inches): %d\n", volume);
printf("Dimensional weight (pounds): %d\n", (volume + 165) / 166);
return 0;
}
4. [was #6] Here's one possible program:
#include <stdio.h>
int main(void)
{
int i, j, k;
float x, y, z;
printf("Value of i: %d\n", i);
printf("Value of j: %d\n", j);
printf("Value of k: %d\n", k);
printf("Value of x: %g\n", x);
printf("Value of y: %g\n", y);
《C語言程序設(shè)計-現(xiàn)代方法》第二版(呂秀鋒黃倩著)目錄
第1章 C語言概述
第2章 C語言基本概念
第3章 格式化輸入/輸出
第4章 表達(dá)式
第5章 選擇語句
第6章 循環(huán)
第7章 基本類型
第8章 數(shù)組
第9章 函數(shù)
第10章 程序結(jié)構(gòu)
第11章 指針
第12章 指針和數(shù)組
第13章 字符串
第14章 預(yù)處理器
第15章 編寫大型程序
第16章 結(jié)構(gòu)、聯(lián)合和枚舉
第17章 指針的'高級應(yīng)用
第18章 聲明
第19章 程序設(shè)計
第20章 底層程序設(shè)計
第21章 標(biāo)準(zhǔn)庫
第22章 輸入/輸出
第23章 庫對數(shù)值和字符數(shù)據(jù)的支持
第24章 錯誤處理
第25章 國際化特性
第26章 其他庫函數(shù)
附錄A C語言運算符
附錄B C99與C89的比較
附錄C C89與經(jīng)典C的比較
附錄D 標(biāo)準(zhǔn)庫函數(shù)
附錄E ASCII字符集
參考文獻(xiàn)
索引
【《C語言程序設(shè)計-現(xiàn)代方法》第二版(呂秀鋒黃倩著)課后答案英文版】相關(guān)文章: