1.

The purpose of the preprocessor directive #error is that ____________(a) It rectifies any error present in the code(b) It rectifies only the first error which occurs in the code(c) It causes the preprocessor to report a fatal error(d) It causes the preprocessor to ignore an errorThe question was asked during an online exam.My question comes from Conditional Preprocessor Directives topic in section C Preprocessor of C

Answer»

The CORRECT answer is (C) It causes the PREPROCESSOR to report a fatal error

Best explanation: #error is a preprocessor directive which causes the preprocessor to report a fatal error. The tokens which form the rest of the line after #error are USED as the error MESSAGE.



Discussion

No Comment Found

Related InterviewSolutions