1.

What do we need to do if we want to run the setup() function in an infinite loop?(a) Call the setup() function from a custom named function(b) Call the setup() function from a constructor(c) Call the setup() function from the loop() function(d) Call the setup() function from the destructorI got this question in semester exam.I'm obligated to ask this question of The setup() Function topic in chapter Arduino Programming of Arduino

Answer»

The correct CHOICE is (c) Call the setup() function from the loop() function

For explanation: The setup() function is designed to RUN only at the startup of the Arduino code, in order to INITIALIZE and configure the setup before RUNNING the actual code. However it is theoretically possible to run the setup() function infinitely by calling it from the loop() function as illustrated below…



Discussion

No Comment Found

Related InterviewSolutions