Saturday, 4 February 2012

Include Directive

 
Dear Visitors,
          As you learn in our previous post that the most important preprocessor Directives are:

  • Include directive
  • define directive
Today we will share with you knowledge related to include directive......


SO FRIENDS LETS START OUR LESSON
  • The 'include' Directive:-
The 'include' directive is used to include the specified header file in the program. It means that this preprocessor directive tells the preprocessor to insert the definitions of standard functions (used in the program) into C program from a standard library.
               The general syntax of "include" directive to include standard header file is:
#include<name of header file>
For Example:
To include header file "stdio.h" in the program, the preprocessor directive is written as:
#include<stdio.h>
The above preprocessor directive tells the compiler to include header file "stdio.h". This header file contains the information about standard input and output functions. The scan() and printf() functions are the most commonly used input and output functions.

No comments:

Post a Comment