title: How to pass a string array pointer to a new character array? in C
body: <p>I have an array pointer and I try to pass strings of this pointer to a new array. However, I can not print out the new array. My code is:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  int main() {
      char *array[5] = {"may", "june", "july", "august", "september"};
      char buffer[5];
      for (int i=0; i&lt;5; i++) {
          buffer[i] = *array[i];
          printf(%s , buffer[i]);     
      }
  }
  </code></pre>
  
  <p>I can not compile the program because it got error of %s. How can I print out the buffer array like: </p>
  
  <p>may june july august september  </p>
  
  <p>without changing it format char buffer[5] which means I do not want to change it to *buffer[5] or anything else. Thank you.</p>