[previous] 3674 [next] Array size defined implicitly by the number of initializers.
Arrays, structures, unions and bit-fields REFERENCE - ISO:C90-6.5.7 Initialization - Semantics

An array has been defined without an explicit size. Its size is defined implicitly by the number of initializers.

For example:


/*PRQA S 2017,2213,3120,3122,3211,3408,3603,3625 ++*/


extern int a[] = { 1, 2, 3 };            /* Message 3674 (size=3) */

extern char b[] = "ABC";                 /* Message 3674 (size=4) */

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents