WHAT IS A HEADER FILE??

WHAT IS A HEADER FILE????

  1. In simple language we can say that it is the head of any program.
  2. Our brain contains information within our head. In the same way header files play the role of a brain.
  3. Header files contains pre written information which the compiler checks on our direction.                                               Eg- #include<stdio.h>      stdio.h contains pre written              information about printf  and scanf  commands.                                                                                                                               - #include<conio.h>     conio.h contains commands to read           clrscr( ); and getch( );
  4. We can also think a header file as a library which contains different information.
  5. All header files end with .h
  6. You request the use of a header file in your program by including it, with the C preprocessing directive #include like you have seen inclusion of stdio.h header file, which comes along with your compiler.
  7. The include syntax is #include< file > OR #include " file "
  8. In C programming language there are many header files which we would encounter one by one.

No comments:

Post a Comment