title: How to initialize a char array using a char pointer in C
body: <p>Let's say I have a char pointer called string1 that points to the first character in the word "hahahaha". I want to create a char[] that contains the same string that string1 points to.</p>
  
  <p>How come this does not work?</p>
  
  <pre><code>char string2[] = string1;
  </code></pre>