How to make the loop function run only once but the code inside run infinitely?

Lê Như Ý

New member
How to make the loop function run only once but the code inside run infinitely?
A. Create a recursive function call statement
B. Create a nested infinite loop within the loop() function
C. Call the setup() function from the loop() function
D. Call the loop() function from the setup() function
 
Answer: B
Explanation: Yes, it is possible to make the loop() function execute only once while running the code infinitely. This can be done by using an infinite loop within the loop() function so that the code never goes out of the loop and thus never allowing the loop() function to iterate.
 

Tìm kiếm

Back
Top