title: How do I run a C program from my Windows command prompt?
body: <p>Using Vim as an editor, I wrote the following simple code in C and saved it as helloworld.c :</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      printf("Hello world!\n");
  }
  </code></pre>
  
  <p>In command prompt, I wrote:</p>
  
  <pre><code>start chrome helloworld.c
  </code></pre>
  
  <p>This caused my browser to open up the file, but it did not print Hello World.  Instead, it just displayed the code I had written.  Did I not save it as a C file?</p>
  
  <p>Also, I was wondering how to display the result of my C program inline on command prompt, as I am fairly new to it.  While searching the internet, I could not find any answers.  Am I supposed to do so from Vim?  I learned that you are supposed to do ./ in the gedit command box to display the result inline, but this does not work for the one that comes with Windows.</p>
  
  <p>Please help and thank you for taking the time to read and answer.</p>