编写一个C语言程序,输出结果为hello world

编写一个C语言程序,输出结果为hello world,第1张

以下为程序代码及执行结果

#include<stdio.h>

#include<windows.h>

intmain()

{

printf("helloworld!\n")

system("pause")

return0

}

执行结果:

printf("Hello,world\n")//printf是系统输出函数,用于向控制台打印文字。

#include"stdio.h"//标准输入输出库的头文件

#include"conio.h"//控制台输入输入库的头文件

#include<stdio.h>

intmain()

{

printf("helloworld!\n")//输出helloword!

return1//返回1

}

扩展资料

“Hello,world”的引用

HelloWorld最初是由BrianKernighan创建的。1978年,BrianKernighan写了一本名叫《C程序设计》的编程书,在程序员中广为流传。他在这本书中第一次引用的HelloWorld,之后“Helloworld”就开始流行起来,并成为了计算机发展历史上一个具有重要意义的起点。

例:

main(){

分机a,b,c

putchar(a)putchar(b)putchar(c)putchar('!*n')

}

“地狱”;

b'o,w'

c'orld'


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/12025587.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-20
下一篇 2023-05-20

发表评论

登录后才能评论

评论列表(0条)

保存