title: error: excess elements in char array initializer
body: <p>I am creating a weather report for college assignment. I working on a function that is suppose to print out the data for all 12 months. I have an array that is 12 in size and holds the name of the 12 months. When I compile the program I keep getting the following error:</p>
  
  <pre><code>assignment3.c:149:5: error: excess elements in char array initializer
  </code></pre>
  
  <p>Here is the function that has this array:</p>
  
  <pre><code>    void printMonthlyStatistic(int month,const struct MonthlyStatistic* monthly){
  
      int i;
      char monthNames[12] = {"January", "February", "March", "April", "May", "June", "July", "August",
                             "September", "October", "November", "December"};
  
      for (i=0;i&lt;12;i++) {
  
          printf(" %c | %.1f | %.1f | %.1f | %.1f \n",monthNames[i],monthly-&gt;maxTemperature,monthly-&gt;minTemperature,monthly-&gt;averageTemperature,
                                                      monthly-&gt;totalPrecipitation);
      }
  
  }
  </code></pre>