title: Storing user variable and printing in C
body: <p>I apologize if this is a relatively simple question. I'm trying to get a handle on C programming after having learn't python. I'm trying to read a command line argument like <code>./myprogram 8</code>, and to be able to access that <code>8</code>. I've managed to get it working by directly accessing the users input like <code>printf(&quot;%s\n&quot;, argv[1]);</code>
  But I'm struggling to store it as a variable. The code below runs but it doesn't print the <code>8</code> at all.</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(int argc, char* argv[]) {
      int UserInput1;
  
      UserInput1 = argv[1];
      printf(&quot;%s\n&quot;, UserInput1);
  
      return 0;
  }
  </code></pre>
  <p>I appreciate any and all help, and i thank you in advance for your time</p>