Hello World
#include <stdio.h>main() {printf("hello, world!\n");}
拡張子は*.cで、コンパイルgccコマンドで実行します。
$ gcc -o hello hello.c$ ./hellohello, world!
#include <stdio.h>main() {printf("hello, world!\n");}
拡張子は*.cで、コンパイルgccコマンドで実行します。
$ gcc -o hello hello.c$ ./hellohello, world!