adplus-dvertising
frame-decoration

Question

How is search done in
#include and 

a.

When former is used, current directory is searched and when latter is used, standard directory is searched

b.

When former is used, predefined directory is searched and when latter is used, current directory is searched and then predefined directories are searched

c.

When former is used, search is done in implementation defined manner and latter is used to search current directory

d.

For both, search for somelibrary is done in implementation-defined manner

Posted under C Programming

Answer: (b).When former is used, predefined directory is searched and when latter is used, current directory is searched and then predefined directories are searched

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How is search done in #include and #include”somelibrary.h” normally or conventionally?

Similar Questions

Discover Related MCQs

Q. Can function definition be present in header files?

Q. If the file name is enclosed in double quotation marks

Q. If the file name is enclosed in angle brackets

Q. Which of the following names for files not accepted?

Q. What is the advantage of #define over const?

Q. Which of the following properties of #define not true?

Q. The “else if” in conditional inclusion is written by?

Q. Which of the following sequences are unaccepted in C language?

a) #if
#else
#endif

b) #if
#elif
#endif

c) #if
#if
#endif

d) #if
#undef
#endif

Q. In a conditional inclusion, if the condition that comes after the if holds.

Q. Conditional inclusion can be used for

Q. The #elif directive cannot appear after the preprocessor #else directive

Q. For each #if, #ifdef, and #ifndef directive

Q. The #else directive is used for

Q. Use of functions

Q. Any C program

Q. What is function?

Q. The default parameter passing mechanism is

Q. Pick the correct statements.

I. The body of a function should have only one return statement.
II. The body of a function may have many return statements.
III. A function can return only one value to the calling environment.
IV. If return statement is omitted, then the function does its job but returns no value to the calling environment.

Q. Which of the following is a complete function?

Q. The recursive functions are executed in a ...........