1.

Can a programmer not use the loop function at all in a code?(a) Yes(b) No(c) Yes, but it needs to be called at least once(d) Yes, but it needs to be commented outThis question was posed to me in an international level competition.I would like to ask this question from The loop() Function topic in division Arduino Programming of Arduino

Answer»

The correct ANSWER is (a) Yes

To explain: The LOOP function is a custom PREDEFINED function that was designed to execute code over and over again for the Arduino. However if a programmer can replicate that same functionality in his/her code without the USE of the loop() function then there is compulsion for him/her to INCLUDE the loop() function in the program.



Discussion

No Comment Found

Related InterviewSolutions