MISRA Discussion Forums

Full Version: Questions about 18.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have the following patterns, anybody please kindly give me some advises on them.

/*pattern1*/
int counter;
for (counter = 0; counter < 100; counter++)
{...}
...
counter = a*b;
Quote:I have the following patterns, anybody please kindly give me some advises on them.
[code]/*pattern1*/
int counter;
for (counter = 0; counter < 100; counter++)
{...}
...
counter = a*b;