TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

SR:  8.7#4Checked automatically with code checker

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 */