title: Pass arguments into C program from command line
body: <p>So I'm in Linux and I want to have a program accept arguments when you execute it from the command line.</p>
  
  <p>For example, </p>
  
  <p><code>./myprogram 42 -b -s</code></p>
  
  <p>So then the program would store that number 42 as an int and execute certain parts of code depending on what arguments it gets like -b or -s.</p>