/* * prog02.c --- 有名な Hello world プログラム (printf() で画面への文字出力) * コンパイルには、たとえば gcc -o prog02 prog02.c */ /* * printf() は標準出力 (通常は画面と結合) への書式付き出力を行う関数である。 * その「宣言」をするために stdio.h (standard input and output の略) という * ファイルを #include という命令を用いてインクルードする。 * その実体は /usr/include/stdio.h というファイルである。 */ #include int main() { printf("Hello, world.\n"); return 0; }