stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename
1 Users
0 Comments
23 Highlights
0 Notes
Top Highlights
<filename>
preprocessor searches in an implementation-defined manner, normally in directories pre-designated by the compiler/IDE
header files for the C standard library
"filename"
to include programmer-defined header files
typically includes same directory as the file containing the directive (unless an absolute path is given)
< and >
refer to a header, which isn't necessarily a file
"file"
the implementation first looks for a file of the given name
if the search fails, the implementation behaves as though
#include <file>) form was used
the only real difference is "header" versus "source file"
Using double quotes means that you intend to include a "source file"
angle brackets mean you intend to include a "header" which
may not be a file at all
"Source file"
usually is, and almost always should be) a ".h" file
header
causes the replacement of that directive by the entire contents of the header
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.