如何用C语言输出“hello world” 一、添加头文件 #include <stdio.h> 二、定义main函数 int main(){ } 三、写出代码主体 printf("hello world"); return 0; 四、总体代码 #include <stdio.h> int main() { printf("Hello World!"); return 0; }