Professional Documents
Culture Documents
Hello World Program in C
Hello World Program in C
Hello World Program in C
#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}
Copy
Note: Do not make typing mistakes while writing the above program. Otherwise it may result in
various errors.
Save the above program with name helloworld.c
Before I get down in details about the code. Let us run the program and test.
Trending
Classification of programming languages
gcc helloworld.c -o helloworld
helloworld.exe
Hello, World!
Copy
The code on execution produces Hello, World! on screen.
Let us see the various elements used in the code and meaning they convey.