Synopsis: | For nested initialisers, the braces should match the structure. |
Language: | C |
Severity Level: | 2 |
Category: | DECLARATIONS |
Description: |
Not matching them is an error-prone practice.
Example: float that[4][3] = { 1,3,5,2,4,6, etc. } /* WRONG */ float this[4][3] = { {1,3,5}, {2,4,6}, etc. } /* RIGHT */ |