1.

Can the loop() function be called recursively?(a) Yes, it can be called recursively(b) No, it cannot be called recursively(c) Yes, it can be called recursively but only by the setup() function(d) Yes, it can be called recursively but only twiceThe question was posed to me by my school teacher while I was bunking the class.My doubt stems from The loop() Function in division Arduino Programming of Arduino

Answer»

The CORRECT choice is (a) Yes, it can be called recursively

To explain: The ARDUINO Programming Language is a working SUBSYSTEM of the C++ Programming Language. This allows for any function to be called recursively at any point in the program. Since the LOOP() function is a custom predefined function in the Arduino Ecosystem, it too has to follow that rule.



Discussion

No Comment Found

Related InterviewSolutions