c program to print hello world

c program to print hello world

How to print “hello world” in c languages, today we will learn in this program. This program is very basic and programming starts from “hello world” in c language, you can see the program given below, how hello world prints.

Program

//Program To print " Hello World"

#include<stdio.h>
#include<conio.h>

void main() 
{ 
 clrscr();        //Devc++ compiler does not use clrscr .
 printf("Hello World");
 getch();
}

Output

Hello World


You can also print your name or name of any city, address or any message at the place of hello world, you can see the example given below.

Program To print “Sirf Padhai”

//Program To print "Sirf Padhai"

#include<stdio.h>
#include<conio.h>

void main() 
{ 
 clrsr();          //Devc++ compiler does not use clrscr .
 printf("Sirf Padhai");
 getch();
}

Output

Sirf Padhai

Program To print “Massaging”

//Program To print "What did you learn from Sirf Padhai and tell me by commenting?"
#include<stdio.h>
#include<conio.h>

void main() 
{ 
 clrsr();      //Devc++ compiler does not use clrscr .
 printf("What did you learn from Sirf Padhai and tell me by commenting?");
 getch();
}

Output

What did you learn from Sirf Padhai and tell me by commenting?
You can also read c language tutorial in Hindi, I hope you have come well to print hello in c program, if you have any problem then you can ask on telegram or instagram. 

Thank You.
Previous articleexception handling in python with example
Next articlebuilt in exception in python

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here