1.

#warning and #error are two preprocessor directives and the job of #warning is to throw a message to the Arduino IDE. However, which of these preprocessor directives stops the compilation process?(a) #error(b) #warning(c) #include(d) #defineThe question was posed to me in an international level competition.My query is from Preprocessing in chapter Arduino Programming of Arduino

Answer»

The correct OPTION is (a) #error

Explanation: As explained in the question, the job of the #WARNING preprocessor directive is to throw a MESSAGE to the Arduino IDE as a warning to notify the user or the programmer of something. However, it does not hinder in the COMPILATION PROCESS.



Discussion

No Comment Found

Related InterviewSolutions