Written by - Vanshika Yadav

Hello World In C


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

Lets understand the code in detail.

  1. #include<stdio.h> : This include the header file (stdio.h)which contains the declarations of standard I/O function.
  2. int main() : It is the main function from where the execution of c program begins.
  3. { : Indicates the beginning of main function.
  4. printf("Hello World"); : This command prints the output on the screen.
  5. return 0; : This command is used to terminate a C program and it returns 0.
  6. } : It is used to indicate the end of the main function.