Main Content
MISRA C:2012 Rule 18.5
Declarations should contain no more than two levels of pointer nesting
Description
Rule Definition
Declarations should contain no more than two levels of pointer nesting.
Rationale
The use of more than two levels of pointer nesting can seriously impair the ability to understand the behavior of the code. Avoid this usage.
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: Pointers and Arrays |
Category: Advisory |
AGC Category: Readability |