c - Difference between #include <filename> & #include "filename" -
this question has answer here:
here preprocessor directive in c :
#include <filename>
we can write in way also:
#include "filename"
is there difference between these two?
in general, <>
version should in "system directories", while ""
should in "local directories" first, , system directories.
what means implementation dependent. in cases ""
in current directory first, in implementations in directory of source (.c
) file first (and compilers have switch that). also, behavior different w.r.t. "set of system directories" search if "local directory search" fails (the same <>
or not).
Comments
Post a Comment