创建文件并进入编辑器
vim hello.c输入代码
#include <stdio.h>
int main(){
printf("hello world!");
}编译c程序
gcc hello.c执行后会出现a.out文件
执行c程序
./a.out hello.c
微信扫一扫
创建文件并进入编辑器
vim hello.c输入代码
#include <stdio.h>
int main(){
printf("hello world!");
}编译c程序
gcc hello.c执行后会出现a.out文件
执行c程序
./a.out hello.c
相关推荐