Header Files

Header Files


Header Files are already written files that simplify your work for example for i/o we have stdio.h header file by using that we can simply input and output stuff to the console.

header files have .h extension with it and it is one of the example of modularity of c language, there are many header files are available in c language.

stdio.h   defines core input output functions

string.h  defines string handling function

math.h  defines common mathematical functions

and many more...

To use these header files, first  we include them in your program and then we can start using their features

syntax:

#include <headder_filename.h>

OR

#include "header_filename.h"