C_Primer_Plus(第五版)中文版课后习题答案.doc

C_Primer_Plus(第五版)中文版课后习题答案.doc

Chapter 2 PE 2-1 /* Programming Exercise 2-1 */ #include stdio.h int main(void) { printf(Anton Bruckner\n); printf(Anton\nBruckner\n); printf(Anton ); printf(Bruckner\n); return 0; } PE 2-3 /* Programming Exercise 2-3 */ #include stdio.h int main(void) { int ageyears; /* age in years */ int agedays; /* age in days */ /* large ages may require the long type */ ageyears = 44; agedays = 365 * ageyears; printf(An age of %d years is %d days.\n, ageyears, agedays); return 0; } PE 2-4 /* Programming Exercise 2-4 */ #include stdio.h

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档