title: Why c++ char array size is increase by one
body: <p>I declare C++ array as follows. Array size is 5 and number of characters are 5. But i have error: <code>initializer-string for array of chars is too long</code> When i change array size to 6 or empty, then no error. Why is that? </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
     char name[5] = "ABCDE";
     cout&lt;&lt;name;
     return 0;
  }
  </code></pre>