Which preprocessor directive is used to include a header file in C++?
Options
-
A.
#include
-
B.
#define
-
C.
#ifdef
-
D.
More than one of the above
-
E.
None of the above
Correct Answer (Detailed Explanation is Below)
A.
#include
Detailed Explanation
Correct Answer: Option A — #includeExplanation: The #include directive tells the preprocessor to include the contents of a specified header file.