title: How to print all values in character array in C
body: <p>Could you please help me why this code is not printing the char array of '*' chars as expected?</p>
  
  <pre><code>int n = 10;
  char *cs = (char*) calloc(n + 1, sizeof(char));
  for (int i = 0; i &lt; n; i++) {
      cs[i] = '*';
  }
  cout &lt;&lt; cs &lt;&lt; endl;
  </code></pre>
  
  <p>Googled around a lot, but didn't find the same problem anywhere..</p>
  
  <p>Thanks!</p>