Forward Declarations of Static Arrays

When the GCC extensions setting is on, the compiler will not issue an error when you declare a static array without specifying the number of elements in the array if you later declare the array completely. The following listing shows an example.

Listing: Forward declaration of an empty array

static int a[]; /* Allowed only when GCC extensions are on. */

/* ... */

static int a[10]; /* Complete declaration. */