C Basics - C programming (MCQ) questions for Q. 27526
Q. How is search done in #include and #include "somelibrary.h" according to C standard?- Published on 26 Feb 17a. When former is used, current directory is searched and when latter is used, standard directory is searched
b. When former is used, standard directory is searched and when latter is used, current directory is searched
c. When former is used, search is done in implementation defined manner and when latter is used, current directory is searched
d. For both, search for ‘somelibrary’ is done in implementation-defined places
ANSWER: For both, search for ‘somelibrary’ is done in implementation-defined places