title: C++ array assignment gives compiler error
body: <p>When i try to assign values to an array like this:</p>
  
  <pre><code>int ar[5] = {18,19,20,21,22,23};
  </code></pre>
  
  <p>I get a compiler error: too many initializers for 'int [5]'</p>
  
  <p>But when I do it like this:</p>
  
  <pre><code>int ar[5];
  ar[0] = 12, ar[1] = 13, ar[2] = 14, ar[3] = 15, ar[4] = 16, ar[5] = 17;
  </code></pre>
  
  <p>Everthing is fine and the program runs fine and outputs correct results, am I doing something wrong or?</p>