Arrays of Zero Length in Structures

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

Listing: Using Zero-Length Arrays
struct listOfLongs {

 long listCount;

 long list[0]; // OK if ANSI Strict is disabled, [] is OK, too.

}