title: How to initialize a char* without first defining it's size
body: <p>Right off the bat, I'm required to use dynamically allocated character arrays for my assignment, so do NOT suggest I just use strings. I need to create a method that accepts a character array as an argument, and inserts that character into a char* using strcpy. How do I do this without first initializing the char*?</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>char* char_array;
  char test_array[] = {'t','e','s','t','\0'};
  strcpy(char_array, test_array);
  </code></pre>