title: How to run shell commands in a C program
body: <p>I am really new to advanced programming (at least this is advanced for me)</p>
  
  <p>I want to learn how to run shell commands through C program on windows</p>
  
  <p>I did search for it and I know it has got something to do with <code>system()</code> and <code>exec()</code> but I didn't get a definite answer.</p>
  
  <p>To begin with,i would like to execute cd command and also md command</p>
  
  <p>So if someone can break this down to really basic level,it will be much appreciated. Thank you</p>
  
  <p>P.S. I succeeded in doing so and I know now one shouldn't run system commands through C but this was just an assignment.Thank you</p>