title: Assigning to char *[50]?
body: <p>This is probably very simple, but I am trying to make something with has a variable defined like this:</p>
  
  <pre><code>char *temp[50];
  </code></pre>
  
  <p>And to change it I am doing things like:</p>
  
  <pre><code>strcpy(temp[1],"Hi");
  </code></pre>
  
  <p>However this segmentation faults.
  I tried <code>&amp;temp[1]</code>, however this does not work. Could anyone point me in the right direction.</p>
  
  <p>Edit: after reading comments and answers, I have decided to post some more information.</p>
  
  <p>What I am trying to do is have 50 chars (so I could put char *temp1, char *temp2, etc) only in one, so it would go from char *temp1, char *temp2, etc to char *temp[50]</p>