编译第一个C语言程序
练习程序
#include <stdio.h>
int main()
{
printf("Hello World!!!");
}
编译
1.直接编译运行
编译:gcc hello.c
运行:./a
2.指定文件名
编译:gcc hello.c -o hello.out
注:window环境下用gcc hello.c -o hello.exe
获得可执行文件
3.多个.c
文件(没写源程序)
编译:gcc hello1.c hello2.c -o hello.out