title: How do I convert a char array to a string in C?
body: <p>I want to convert my char array to a string so I can pass it into a function. Say if I have this:</p>
  
  <pre><code>char array[3] = {'1', 'a', '/'};
  </code></pre>
  
  <p>and I want to convert it to </p>
  
  <pre><code>char *string = "1a/";
  </code></pre>
  
  <p>Do I just add a NULL terminator on the end?</p>