include header file different

Difference Between #include “file.h” and #include

Posted on

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.

Read other articles  How To Use Nokia LCD 5110 With Arduino

Leave a Reply

Your email address will not be published. Required fields are marked *