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 17

a. 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

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)