1.

What Is The Difference Between #include And #include "file" ?

Answer»

We use # include to include a file. The difference between two ways of file inclusion lies in the order in which preprocessor searches for the file specified. When the preprocessor ENCOUNTERS #include statement, it looks for the file specified in the angled brackets in the default location (PATH defined in INCLUDE environment variable of the system).
When # include followed by file NAME in double quotation marks is encountered by the preprocessor, it looks for the file in the current DIRECTORY. If the file is not found in the current directory, it will look for the file in the default location.

We use # include to include a file. The difference between two ways of file inclusion lies in the order in which preprocessor searches for the file specified. When the preprocessor encounters #include statement, it looks for the file specified in the angled brackets in the default location (Path defined in INCLUDE environment variable of the system).
When # include followed by file name in double quotation marks is encountered by the preprocessor, it looks for the file in the current directory. If the file is not found in the current directory, it will look for the file in the default location.



Discussion

No Comment Found