用C语言写一个hello word

下面是 C 语言中的 "Hello, World!" 程序的样例:

#include <stdio.h>

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

注意,在 C 语言中,需要使用 #include 命令将头文件 stdio.h 包含进来,才能使用 printf 函数输出字符串。

猜你喜欢

转载自blog.csdn.net/weixin_42601702/article/details/129575613