title: Ubuntu passing command line arugments to C program
body: <p>I am learning C programming, I wrote the sample code to accept parameters from terminal and print out the arguments.</p>
  
  <p>I invoke the program like this: ./myprogram 1</p>
  
  <p>I expected 1 to be printed out for the argument length instead of 2. why it is so? There was no spacing after the argument "1"</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(int argc, char *argv[]) {
  
      printf("%d", argc);
  
      return EXIT_SUCCESS;
  }
  </code></pre>