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. Example of an Empty Array as the Last struct Member shows an example.

Listing 1. Example of an Empty Array as the Last struct Member
struct {
  int r;
  char arr[];

} s;