
#include<stdio.h> main() {printf("hello,world");}
5个回答
展开全部
#include<stdio.h> 与 main不能写在一行,应这样写:
#include<stdio.h>
main()
{printf("hello,world");}
扩展资料:
实际上将“Hello”和“World”一起使用的程序最早出现于1972年,在贝尔实验室成员Brian Kernighan撰写的内部技术文件《Introduction to the Language B》之中:
main()
{
extern a,b,c;
putchar(a);putchar(b);putchar(c);putchar('!*n');
}
a'hell';
b'o,w';
c'orld';
参考资料来源:百度百科-hello world

2023-06-12 广告
单片机,即单片微控制器,也称为单片微型计算机,是将中央处理器(CPU)、存储器(ROM,RAM)、输入/输出接口和其他功能部件集成在一块 在一个小块的集成电路上,从而实现对整个电路或系统的数字式控制。单片机不是完成某一个逻辑功能的芯片,而是...
点击进入详情页
本回答由意法半导体(中国)投资有限公司提供
展开全部
main 是入口函数
函数的要数为 返回类型 函数名 形参 函数体
你明显少了函数返回类型
函数的要数为 返回类型 函数名 形参 函数体
你明显少了函数返回类型
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
#include<stdio.h> 与 main不能写在一行,应这样写:
#include<stdio.h>
main()
{printf("hello,world");}
#include<stdio.h>
main()
{printf("hello,world");}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
#include <stdio.h>
void main()
{
printf("hello,world");
}
void main()
{
printf("hello,world");
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
int main()
{
printf("hello,world");
return 0;
}
{
printf("hello,world");
return 0;
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询