the_c_programming_language习题答案教程.pdf

The C Programming Language, 2nd edition, Kernighan and Ritchie 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. Murphys Law dictates that there is no single correct answer to the very first exercise in the book. Oh well. Heres a hello world program: #include stdio.h int main (void) { printf (hello, world\n); return 0; } As you can see, Ive added a return statement, because main always returns int, and its good style to show this explicit

文档评论(0)

1亿VIP精品文档

相关文档