How is search done in #include and #include somelibrary.h according to C standard?

How is search done in #include and #include “somelibrary.h” according to C standard?

How is search done in #include and #include “somelibrary.h” according to C standard? mcq and its answer is provided on this page.

How is search done in #include and #include “somelibrary.h” according to C standard?

Que. How is search done in #include and #include “somelibrary.h” according to C standard?
a. a) When former is used, current directory is searched and when latter is used, standard directory is searched
b. b) When former is used, standard directory is searched and when latter is used, current directory is searched
c. c) When former is used, search is done in implementation defined manner and when latter is used, current directory is searched
d. d) For both, search for ‘somelibrary’ is done in implementation-defined places
Answer: d
Explanation : None.


Comments