First C program to print Hello World from C. How to print Hello World from C? How to give output from C?
/*Program in C to say Hello World*/
#include<stdio.h>
#include<conio.h>
void main()
{
printf("Hello World");
getch();
}
The main() function is called first whenever a C program is executed.
printf(“”) takes string arguments and prints on screen.
getch() is written so that program won’t terminate as soon as output is thrown on console.