Header files are the pre-compiled or pre-coded files with correct logic and syntax that includes in-built functions, class, structure etc. , which may directly or indirectly can be used in the program to avoid the program coding from being lengthy and hence make the execution time fast.
These files are stored in lib folder (library folder) of your respective IDE.
Header files comes with the extension ".h"(dot H).
For eg;
if XYZ is a header file then it comes with "XYZ.h".
Syntax to be used in program to use header file:
#include<XYZ.h>
#include-(hash include) This is called pre-processor directives which means that these are the codings which are already been compiled and processed by the IDE compiler.
#- It is used as linking and loading the header files i.e, it act as a interface between the library file and programming.
include- This includes all the in-built functions, class and structures which are packed in the header file closed in < ......>.
Mostly used header files in C++:
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
These files are stored in lib folder (library folder) of your respective IDE.
Header files comes with the extension ".h"(dot H).
For eg;
if XYZ is a header file then it comes with "XYZ.h".
Syntax to be used in program to use header file:
#include<XYZ.h>
#include-(hash include) This is called pre-processor directives which means that these are the codings which are already been compiled and processed by the IDE compiler.
#- It is used as linking and loading the header files i.e, it act as a interface between the library file and programming.
include- This includes all the in-built functions, class and structures which are packed in the header file closed in < ......>.
Mostly used header files in C++:
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
0 comments:
Post a Comment