Machine-translated by Google. Questions are authored in English.
Top

Discussion

If #include is used with file name in angular brackets.

  • A.The file is searched for in the standard compiler include paths
  • B.The search path is expanded to include the current source directory
  • C.The search path will expand
  • D.None of the mentioned

Answer: A

Correct answer: The file is searched for in the standard compiler include paths

Angle brackets - #include <stdio.h> - tell the preprocessor to look in the standard system include directories. Quotes - #include "myheader.h" - add the directory of the current source file to the front of that search, which is why they are used for a project’s own headers.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.