C Language
Publish Date: April, 26-2019
The "Hello World" Program in C
The intent of your code snippet:
C
#include #include void main() { printf("Hello World !"); }
Standard C Code
For a modern C compiler, the most accurate and standardized way to write this program is:
C
#include <stdio.h>
int main() {
printf("Hello World !");
return 0; // Indicates successful execution
}
Code Explanation
#include <stdio.h>
This line is a preprocessor directive. It tells the compiler to include the contents of the standard input/output library (stdio.h).
This library contains the definition for the printf() function, which is necessary to display output on the console.
int main() { ... }
This is the main function where the program execution begins.
int indicates that the function will return an integer value.
The use of void main() is often accepted by older compilers but is non-standard in modern C.
printf("Hello World !");
This is the core command. The printf function prints the text string enclosed in the double quotes (" ") to the console (or standard output).
The semicolon (;) marks the end of the statement.
return 0;
This is a standard practice within the int main() function.
It tells the operating system that the program has executed successfully.
Output:
Hello World !
Business Services and Certifications
Bulk WhatsApp Marketing Services
Social Media Marketing Services
Website Development
Publish Date: February, 02-2026
Social Media Marketing
Publish Date: January, 31-2026
Digital Marketing
Publish Date: January, 27-2026
web designing
Publish Date: January, 24-2026
Website Development
Publish Date: January, 21-2026
Graphics Designing
Publish Date: January, 17-2026