Hello World

#include <stdio.h>
main() {
printf("hello, world!\n");
}

拡張子は*.cで、コンパイルgccコマンドで実行します。

$ gcc -o hello hello.c
$ ./hello
hello, world!