在Linux上,可以使用gcc命令來編譯C語言程序。以下是基本的編譯步驟:
.c
hello.c
gcc hello.c -o hello
hello
./hello
這樣,你就可以使用gcc在Linux上編譯并運行C語言程序了。