Arduino – infinite loop

  • Post author:
  • Post category:Arduino
  • Post comments:1 Comment
Infinite

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);

Previous Page:-Click Here

This Post Has One Comment

Leave a Reply