Which of the following is a valid C++ preprocessor directive for defining a macro?
Options
A.
#include
B.
#define
C.
#return
D.
More than one of the above
E.
None of the above
Correct Answer (Detailed Explanation is Below)
B.
#define
Detailed Explanation
Correct Answer: Option B — #define
Explanation: The #define directive defines a macro that the preprocessor can substitute before compilation. For example, #define MAX 100 defines a macro named MAX.