title: How can I get a string from a 2d character array in C?
body: <p>The 2d array:</p>
  
  <pre><code>char c[4][3]={{'a','b','c'},{'d','e','f'},{'g','h','i'},{'j','k','l'}};
  </code></pre>
  
  <p>As I wanted to get 'def' after running the program, I tried this code:</p>
  
  <pre><code>printf("%s\n",c[1]);
  </code></pre>
  
  <p>However, the result was 'defghijkl\262'. What's wrong with my code?</p>