Saturday , 13 February 2016
Home » Education » C Programming » C programming language – Statement and Header File

C programming language – Statement and Header File

C programming language – Statement and Header File

C programming has some important things which are statement and header file also library function etc. Header files are stdio.h, conio.h etc. Statements are comment statement, input statement, output statement etc. Library functions are getch(), clrscr(), printf(), scanf() etc.

C Tutorial : Part 2

C Tutorial : Part 3

#comment statement:

Statement and Header File
A Comment statement has no relation with programming language. Sometimes our programming code is so big then we use comment statement. As a result next time we can remember easily why we can use those line. Comement statement is block two style-




Such as:

  1.  #include<stdio.h>  //this is a header file
  2.  #include<conio.h>   /*used for clrscr() and getch()*/
  3. int main(void)
  4. {
  5.  int x=0;
  6. clrscr ();
  7. printf(“enter the number of  x=”);
  8.  scanf(“%d”, &x);  //take a x input in the output screen.
  9.  printf(“\n%d is x number”, x);
  10.  getch ();
  11.  return (0);
  12. }


enter the number of x= 8

**Note: Blod sentences are comment statement. These sentences are not working in that program. Here we use line number because help for describing this programming code.


printf() uses for output-statement  funatement. printf() is a libratry function. Show the output  for many library function.


Scanf() is a input library function. scanf() function uses except input variable from keyboard. Such as scanf(“ %F_S “, &variableName);

Here F_S is formate specefier and variableName is any right variable name. & is called address operator. But string variable is not need address operator.

#Header file:

Programming language have many header file. But now we will learn two type header file. Such as- stdio.h and conio.h. If we used any library function then must be need to add header file before main() function as a prototype. Here the above-mention program stdio.h and conio.h are header file. #include directive statement uses for header file in the C program.

Previous Post: C Programming Language – scanf library function

Incoming search terms:

    chittagong clinic list


  1. I always spent my half an hour to read this webpage’s articles daily along with a mug of coffee.

  2. Hi, I do think this is an excellent site. I stumbledupon it ;
    ) I may return once again since I swved as a favorite it.
    Money and freexom is the greatest way to change, may you be
    rich and continue to help others.

  3. Greetings! Very useful advice within this article! It’s the little changes that
    will make the most significant changes. Thanks a lot for sharing!