This directive treats has included in the current file i.e. in current file also contain data of the file which has included by #include directive.
First create a file of file name cube.h which contains:
int cube ( int a)
Now create any another c file let math.c which contains:
When we write #include “cube.h” the compiler includes contain of file cube.h i.e. cube function in the math.c file. So we can use the function which has defined in cube.h .We can see the intermediate file of math.c:
#include “filename.h”: Search the file include directory as well as current working directory.
Note: In the above question if you will save the file cube.h at c:\tc\include directory then you can write in math.c: