1.

What is the use of the Arduino.h header file?(a) It gives root access to the microcontroller’s file system(b) It enables the programmer to access all of Arduino’s core functionality(c) It allows other people to create libraries for the Arduino code(d) It doesn’t have any use and can be omitted at any point of time in the codeI had been asked this question during an online exam.My query is from Compilation in portion Arduino Programming of Arduino

Answer»

Right answer is (b) It enables the programmer to ACCESS all of Arduino’s core functionality

The explanation is: The Arduino.h file is not something that we encounter during the process of WRITING the code for the Arduino board because the preprocessor takes care of it before COMPILATION. However, it is a very important file without which we cannot access the Arduino’s features like GPIO IO, Analog IO, etc.



Discussion

No Comment Found

Related InterviewSolutions