20-11-2025, 12:39 PM
The examples for Rule 13.3 state:
The glossary also clarifies that assignment includes Using an expression to initialize all or part of an object.
From this, the intent of Rule 13.3 (Advisory) is that use of ++ in an initialization is non-compliant.
Code:
The expression:
u8a = u8b++
is non-compliant.The glossary also clarifies that assignment includes Using an expression to initialize all or part of an object.
From this, the intent of Rule 13.3 (Advisory) is that use of ++ in an initialization is non-compliant.
Posted by and on behalf of the MISRA C Working Group

