bing
Flat 10% & upto 50% off + Free additional Courses. Hurry up!
×
UPTO
50%
OFF!

Hello Program in C

 

A C program basically consists of the following parts:

  • Preprocessor Commands
  • Functions
  • Data types
  • Variables
  • Statements & Expressions
  • Comments

Hello Program in C

Open C console and write the following code:

#include <stdio.h>

#include <conio.h>

void main()

{

clrscr();

printf("Hello C ");

getch();

}

Now click on the compile menu to compile the program. And then click on the run menu to run the c program.

Output:-

Hello C

#include <stdio.h> – It is used to include the standard input output library functions. The printf() function is defined in stdio.h .

#include <conio.h> – It is used to include the console input output library functions. The getch() function is defined in conio.h file.

void main() – The main() function is the entry point of every program in c language. The void keyword indicates that it returns no value.

clrscr() – This function is used to clear the previous output from the console.

printf() – The printf() function is used to print data which is specified in the brackets on the console.

getch() – This function requests for a single character. Until you press any key it blocks the screen.

"0 Responses on Hello Program in C"

100% Secure Payments. All major credit & debit cards accepted Or Pay by Paypal.
top

Sales Offer

  • To avail this offer, enroll before 28th July 2017.
  • This offer cannot be combined with any other offer.
  • This offer is valid on selected courses only.
  • Please use coupon codes mentioned below to avail the offer
offer-june

Sign Up or Login to view the Free Hello Program in C.