精品文档
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格式