FIRST PROGRAM IN C: C PROGRAM


#include<stdio.h>
#include<conio.h>
   void main()
{
printf("Welcome to the world of Computer Science.\n");


printf("No Doubt It's field is very big.");

getch();

}
For Compile:   Alt+f9
For Run       :   Ctrl+f9
Output  :
 Welcome to the world of Computer Science.
 No Doubt It's field is very big.
Note:-

1.      #include<stdio.h>  and  #include<conio.h> are preprocessors thay contains the definition of related function like printf() and getch() respectively.  

2.       Our program starts execution from main function and it must be within pair  of  curly braces { ie. body }.

3.       main function is user defined function but exception is that it is called by c  compiler by default.  

4.     All the statement of main function will be within pair of curly braces({}). 

5.     All the statement will be terminated by semi colon(;). 

6.     getch(): waits user untill press any key.

 DOWNLOAD HERE [PDF]

Related Posts:

  • Simple if Statement : C Programming                  C Programming Simple if Statement The statement which executes on the basis of certain condition is called simple if statement… Read More
  • If else : C Programming C Programming if else If we want to execute the particular statement on the basis of certain condition, called if else statement. Syntax     if(condition) { //body to execute } else { //body to execu… Read More
  • Control Statement : C Programming C Programming Control Statement The statement which control the flow of control is called control statement.    C Provides following types of control statement- 1. Selective Statement or Conditional Statement. … Read More
  • Nested if : C Programming            C Programming Nested if If any statement is executed on the basis of multiple if condition is called nested if. if((condition)&&(condition)&&(co… Read More
  • If-else-If ladder : C Programming                C Programming If else-if ladder The if else ladder statement in C programming language is used to test set of conditions in sequence. A… Read More