Hello World Program in C | Basic C Language Example


Our Blogs

Hello-World.webp

Hello World program in C language

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

  1. #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.

  2. 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.

  3. 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.

  4. 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 !

Recent Post :-

top-5_11zon.webp

Top 5 Mistakes Raipur Businesses Make in Their Website Design

Website Development

Publish Date: February, 02-2026

InfluencerMarketing_11zon.webp

Grow Your Brand with Trusted Influencers in Raipur

Social Media Marketing

Publish Date: January, 31-2026

ecommerce-website_11zon.webp

WordPress ECommerce Website in Raipur at Rs 25K

E-Commerce Websites

Publish Date: January, 29-2026

mobile-friendly.webp

Why Every Raipur Store Needs a Mobile Friendly Website

Website Development

Publish Date: January, 21-2026

meta ads updated_11zon.webp

Meta Ads Services in Raipur by Paramwebinfo

Digital Marketing

Publish Date: January, 19-2026

GD-Rate_list.webp

Graphic Designing Rate List at ParamWebInfo Raipur

Graphics Designing

Publish Date: January, 17-2026

Whatsapp-API-Service_11zon.webp

WhatsApp Marketing API Service in Raipur

WhatsApp Marketing

Publish Date: January, 16-2026