Arrays of Zero Length in Structures

If you disable the ANSI Strict setting , the compiler lets you specify an array of no length as the last item in a structure. Listing 1 shows an example. You can define arrays with zero as the index value or with no index value.

Listing 1. Using Zero-length Arrays

struct listOfLongs {
long listCount;
long list[0]; // OK if ANSI Strict is disabled, [] is OK, too.
}