正确的Hello World用C [英] Proper Hello World in C

查看:142
本文介绍了正确的Hello World用C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是在C正确的Hello World程序?

What is the correct Hello World program in C?

由于谷歌的第一页结果C Hello World的差别很大,许多老C,我想在一个地方,便于复制和粘贴的标准版本。

Since the first page of Google results for "c hello world" vary greatly and many are old C, I would like the standard version in one place for easy copy and paste.

推荐答案

我相信这是一个在C标准的Hello World程序:

I believe this is a standard Hello World program in C:

#include <stdio.h>

int main(void)
{
  printf("Hello World\n");
  return 0;
}

这篇关于正确的Hello World用C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆