Top

Discussion

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 error

Answer: C

#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.

No comment is present. Be the first to comment.
Loading…

Post your comment