C program to print "Hello World"
C program to print "Hello World"
#include<stdio.h>
int main ()
{
printf ("Hello World") ;
return 0;
}
Output:
Hello World
Description:
1. In C language there are many header files like stdio.h, conio.h, stdlib.h, etc. and without these headers files we cannot run our C program. Here we are using printf & the definition or meaning of printf is defined in stdio.h header file. So if you want to use any function then you need to declare header file for this. And there are different header files for different function and statement.
2. Here we are just we are using printf function to print message on our output screen.
3. Simply try this code in your code editor. You may use vs code, code block, etc.
