title: Initializing an array of pointers to pointers
body: <p>This example works fine:</p>
  
  <pre><code>static char *daytab[] = {
      "hello",
      "world"
  };
  </code></pre>
  
  <p>This doesn't:</p>
  
  <pre><code>static char *daytab[] = {
      {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
      {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
  };
  </code></pre>
  
  <p>The way I see it is that the first example creates an array that is filled with pointers to the two string literals (which themselves are arrays). The second example, IMO, should be identical - create an array and fill it with pointers to the two char arrays.</p>
  
  <p>Could someone explain to me why the second example is wrong?</p>
  
  <p>P.S. You could probably write it like this (haven't tested it):</p>
  
  <pre><code>static char a[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  static char b[] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
  static char *daytab[] = {
      a,
      b
  };
  </code></pre>
  
  <p>But that looks like too much work :).</p>