c - Difference between #include <filename> & #include "filename" -


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

Popular posts from this blog

java - Checkbox item adds to spinner -

C# MVC AngularJS -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -