Skip to main content
To Get All Information of Sarkari Jobs | Results | Admit Card | And courses ,Internships then CLICK HERE

First Program in C-:



#include<stdio.h>
#include<conio.h>
main()
{printf("My First C program");
getch();
}
output-:My First C program
  1. In above program the first character is #,it is known as C pre-processor,to get more about pre-processor CLICK HERE.
  2. Then there are two header files "stdio.h" and "conio.h",to learn more about header files CLICK HERE.
  3. ads

  4. Now there is main() function it is the entry point of any C program. It is the point at which execution of program is started. When a C program is executed, the execution control goes directly to the main() function. Every C program must have a main() function.
  5. printf() is used to display message or the data stored in any variable on console.
  6. getch() is used to hold the console screen. The black screen,where we see output,that screen is hold by getch() function.
  7. To compile program press Alt+F9 and to run program press Ctrl+F9.
ads

Watch The Video Below






Comments

Post a Comment

Please do not enter any spam link in the comment box.


Download The Book "Let Us C" By Yashavant P.Kanetkar,Click The Below Button

-->Email Subscription

Enter Your Email Address:-

Delivered by FeedBurner

Copyright © 2020 TechProgramiz|All Right Reserved|Made By-: Sudarshan Pandey