hello world! #C最简单的程序
教科书公认最简单的|C程序:
#include <stdio.h>
void main(){
printf("hello world!");
}
执行结果是在屏幕上显示:hello world!
有些编译器会报错,要求int:
#include <stdio.h>
int main(){
printf("hello world!");
return 0;
}
程序不是直接执行,需要经过编译、连接、执行,无论是何种语言,都是编译成机器可执行码以后才能运行看到结果。
2024-10-23
浏览14
history
登录后评论
点赞
1
分享