In writing programs in C or C ++ we often use the syntax #include. This syntax is included in the preprocessor directive, meaning the command used in the prepocessor and begins with “#”. Preprocesor is a small program that is used to process source code before the program is compiled by compilers. These syntax for header files, meaning that syntax #include will tell the prepocessor to insert other files into the main program. However, there are two types of syntax header files, namely #include <file> and #include “file”. The difference is when searching for files.
# Include <file>
This syntax is used to search files in the default directory provided by the compiler.
# Include “file”
This syntax is used to search files in a specific directory, such as our own files.