Main Content
MISRA C:2012 Rule 12.3
The comma operator should not be used
Description
Rule Definition
The comma operator should not be used.
Rationale
The comma operator can be detrimental to readability. You can often write the same code in another form.
Troubleshooting
If you expect a rule violation but do not see it, refer to Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: Expressions |
Category: Advisory |
AGC Category: Advisory |