一个C语言程序

Posted 西瓜的夏天

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了一个C语言程序相关的知识,希望对你有一定的参考价值。

hello.c 代码

#include  <stdio.h>

#include <stdlib.h>

int main()

{

   printf ("hello,my world!");

   exit(0);

}

编译,运行

$gcc -o hello hello.c

$./hello

hello,my world!

$

 

以上是关于一个C语言程序的主要内容,如果未能解决你的问题,请参考以下文章