|
【文件名】:0936@52RD_C程序设计语言(第二版)课后答案.rar
【格 式】:rar
【大 小】:122K
【简 介】:
【目 录】:
[UseMoney=1]
[/UseMoney]
《c程序设计语言》英文的配套答案,所列页码均为英文版的。
1.01 1.02 1.03 1.04 ——————————————————————————————————————————————————————————————————————————————————————————-Answer to Exercise 1-1
Run the "hello, world" program on your system. Experiment with leaving out parts of the program, to see what error messages you get.
Murphy's Law dictates that there is no single correct answer to the very first exercise in the book. Oh well. Here's a "hello world" program:
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
return 0;
}
As you can see, I've added a return statement, because main always returns int, and it's good style to show this explicitly.
Answer to Exercise 1-2 |
|