Empty Arrays in Structures

When the C99 extensions setting is on, the compiler allows an empty array to be the last member in a structure definition. The following listing shows an example.

Listing: Example of an Empty Array as the Last struct Member
struct {

  int r;

  char arr[];

} s;