Write your first C program, Hello World. A clear walkthrough of the compile and run flow.
#include<stdio.h> int main(void){ printf("Hello World!\n"); return 0; }
printf("...") and display your own message.Check your understanding of this lesson!
In C, the main() function is the entry point (starting point) of the program.
printf does not add a newline unless you include \n. To add a newline, write printf("Hello\n");.
stdio.h is the Standard I/O header file, required for using functions like printf and scanf.