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

SR:  10.2#4

Synopsis:All array types shall be complete by the end of the compilation unit
Language:C
Severity Level:1
Category:EXTERNAL DECLARATIONS


Description:
The specified array is considered an incomplete type as the sizing definition is not present.

Example:

int array[]; /* at file scope */
... /* no subsequent size definition */
A size of one is assumed and this element initialised to zero. The ANSI committee have agreed that this is the intent of the standard. Amend the code such that either an array size or an array initialiser list is specified.