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
您可能关注的文档
- MySQL-Events-CN教程.pdf
- MySQL-Triggers-Translation-CN教程.pdf
- name reaction教程.ppt
- MAX3453E-MAX3456E教程.pdf
- mb_stillwaters教程.pdf
- NCI Competency Interviewing with Possible Questions教程.pdf
- negotiations教程.pdf
- The Magic Skin - Honore de Balzac教程.pdf
- the material for Sun Yixian教程.ppt
- The minimalist program教程.pdf
- Micromachined Fourier transform spectrometer教程.pdf
- The_Practice_of_Social_Research_11e_tutorial_quiz教程.pdf
- oecd guideline to SWFs receipent countries教程.doc
- SPH modelling of fluid at the grain level in a porous medium教程.pdf
- SPIN(Chinese)-Diana教程.ppt
- OHH男装品牌简介教程.DOCX
- OHSAS 18001_2014 Requirements教程.pdf
- oliver goldsmith_2014_9教程.pdf
- On possibilistic mean value and variance of fuzzy numbers教程.pdf
- On the numerical solution on the Fokker-Planck equation for nonlinear stochastic systems教程.pdf
原创力文档

文档评论(0)