Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Infinite loop
#2
In the TC, we allow the for loop example with all three expressions being empty for a deliberate infinite loop.

Code:
/* deliberate infinite loop */
for ( ; ; )
{
   ...
}
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)