coding "hello world"

🌲"hello world"

coding"hello_world".png

🍀#include <stdio.h>
🍀int main()
🍀{
🍀 printf("Hello, World!");
🍀 return 0;
🍀}

  • The #include <stdio.h> is a preprocessor command. This command tells compiler to include the contents of stdio.h (standard input and output) file in the program.

  • The stdio.h file contains functions such as scanf() and print() to take input and display output respectively.

  • If you use printf() function without writing #include <stdio.h>, the program will not be compiled.

  • The execution of a C program starts from the main() function.

  • The printf() is a library function to send formatted output to the screen. In this program, the printf() displays Hello, World! text on the screen.

  • The return 0; statement is the "Exit status" of the program. In simple terms, program ends with this statement.

reference: programiz

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,418评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,789评论 0 23
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,719评论 0 3
  • 有了一个名义上的女朋友,让小伙伴子傲帮我把卷子(郝文平)寄给我,跟秋月一起学三级半,三个月,目标十二月月底。 《家...
    圣者从之阅读 170评论 0 0
  • 即使你隐藏得再好,真正懂你的人,也会从你的微笑中看出忧伤。
    薛崔愿阅读 192评论 0 4