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. Forward declaration of an empty array shows an example.

Listing 1. Forward declaration of an empty array
static int a[]; /* Allowed only when GCC extensions are on. */
/* ... */

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