Question

Which of the following statements about the #include directive in C/C++ is correct?

A It copies the contents of a file into the program before compilation Correct Answer Incorrect Answer
B It is executed during runtime to import libraries Correct Answer Incorrect Answer
C It allocates memory for header files Correct Answer Incorrect Answer
D It links external libraries during linking phase Correct Answer Incorrect Answer
E It is used to define macros Correct Answer Incorrect Answer

Solution

It copies the contents of a file into the program before compilation.

Practice Next

Relevant for Exams:

ask-question