Arduino - infinite loop


Advertisements

It is the loop having no terminating condition, so the loop becomes infinite.

infinite loop Syntax

Using for loop

for (;;) {
   // statement block
}

Using while loop

while(1) {
   // statement block
}

Using do…while loop

do {
   Block of statements;
} 
while(1);
arduino_loops.htm
Advertisements