title: How to print the contents of a two-dimensional array of characters?
body: <p>I'm trying to print an array of characters in C but i can't print everything.
  I want to print :
  b1
  b2
  My code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  int main() {
    char def[3][10];     //define a multidimensional array of characters 
    strcpy(def[0],"b1"); //insert "b1" at first line
    strcpy(def[1],"b2"); //insert "b2" at first line
    printf("%s",def);    //print everything?
  }
  </code></pre>
  
  <p>The above code prints just <code>b1</code>. I already tried :</p>
  
  <pre><code>printf("%s",def[0]);
  printf("%s",def[1]);
  </code></pre>
  
  <p>But i have error "invalid use of array with unspecified bounds"</p>