R
red floyd
Nobody said:Correct formatting is:
void Whatever()
{
for (int i = 0; i < 100; i++)
{
printf("whatever\n");
}
}
And technically, its impolite to brace single lines (single SOURCE lines,
not single code lines... ie... if your single line of source wraps multiple
lines, it should be braced), but in the above case... CORRECT & POLITE
formatting is:
void Whatever()
{
for (int i = 0; i < 100; i++)
printf("whatever\n");
}
Except for when your project's official style guide says, "Thou *SHALT*
enclose if statements and for loops in braces."