1.

How is search done in #include and #include”somelibrary.h” normally or conventionally?(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 mannerThe question was asked in an internship interview.The query is from File Inclusion in chapter C Functions and Structure of a Program of C

Answer»

The CORRECT option is (b) When former is USED, predefined directory is searched and when latter is used, current directory is searched and then predefined DIRECTORIES are searched

For explanation: None.



Discussion

No Comment Found

Related InterviewSolutions