建立檔案 helloworld.c
---------------------------------------------------
#include <stdio.h>
int main() {
printf("%s","Hello World!!\n");
return 0;
}
---------------------------------------------------
下指令
$ gcc helloworld.c
執行
$ ./程式名稱.out
完成
---------------------------------------------------
指定output檔名

轉貼自
鳥哥私房菜