3 ms·
That's why it's a good practice to comment closing curly braces for the long blocks: while (1) { < many lines of nested code > } // end of
by kbart 11y ago
That's why it's a good practice to comment closing curly braces for the long blocks:
while (1)
{
< many lines of nested code >
} // end of while
- possibility 11y agoBut before you do that, try pulling out functions.
- kbart 11y agoOf course, but in embedded applications fairly large loops are common. It's not uncommon to see all code embedded inside a single while (1).