title: Why can std::cout print a char[]?
body: <p>Below code prints the entire string. I am confused why its does so.</p>
  
  <pre><code>char test[] = "jeff";
  cout&lt;&lt;test&lt;&lt;endl;
  </code></pre>
  
  <p>The output is "Jeff", I was expecting it to print the value of char array "test", since test is pointer, pointer the first element which is 'J'.</p>
  
  <p>Why is it printing the whole string, when I <code>cout&lt;&lt;test</code>??</p>