Which preprocessor directive among the following forces the compiler to stop the compilation?
A. #warning
B. #endregion
C. #undef
D. #error
Answer:A
Which preprocessor directive among the following forces the compiler to stop the compilation?
A. #warning B. #endregion C. #undef D. #error
Explanation: The #error directive forces the compiler to stop compilation. It is used for debugging. The general form of the #error directive is #error error-message. When the #error directive is encountered, the error message is displayed