title: Set string variable in C from argv[1]
body: <p>I am trying to learn C, and I wonder why this doesn't work?   </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(int argc, char *argv[])
  {
      char testvar[] = argv[0];
      //do something with testvar
  
      return 0;
  }
  </code></pre>