hello.c
#include
int main(void)
{
printf ("Hello world, Linux programming!\\n");
return 0;
}
然后执行下面的命令编译和运行这段程式:
# gcc hello.c -o hello
# ./hello
Hello world, Linux programming!
./initializing
在linux下简单编译运行C程序
最新推荐文章于 2021-10-13 19:21:47 发布
hello.c
#include
int main(void)
{
printf ("Hello world, Linux programming!\\n");
return 0;
}
然后执行下面的命令编译和运行这段程式:
# gcc hello.c -o hello
# ./hello
Hello world, Linux programming!
./initializing