29-11-2017, 03:47 PM
MISRA C:2012 Rule 14.2 puts the following restriction on the "third clause" (called "expression" in C++:2008):
Shall not use objects that are modified in the for loop body.
For example, the following violates this rule:
[code]
for (int i=0; i
Shall not use objects that are modified in the for loop body.
For example, the following violates this rule:
[code]
for (int i=0; i
<t></t>