What is #include directive?

#include directive: 

C programs are divided into modules or functions. Some functions are written by users and some are stored in C library. Library functions are grouped category wise and stored in different files known as header files. To access the file stored in the library, it is necessary to tell the compiler about the files to be accessed. This is achieved by the pre-processor directive #include as follows,

                                                #include<filename>

Filename is the name of the library file that contains the required function definition. Pre-processor directives are placed at the beginning of the program.

Author: Tanmay Chakrabarty

Tanmay Chakrabarty is a former CSE student, currently working as a Senior Software Engineer with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in Javascript, JQuery, JQuery UI and CSS. He tries to write notes every week but fails due to heavy loads of duty.

Recommended Recommends

Comments

Contact Us