title: Enforce ANSI C Standard in Visual Studio 2015
body: <p>I am trying to get Visual Studio to enforce the ANSI C standard when compiling a project, but I can't get it to work.
  Any tips?
  I have read all the tutorials, I enabled the /Za option, and named my file as .c (not .cpp). However, the following program still builds successfully:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  void main(void)
  {
      for (int i = 0; i &lt; 10; i++)
      {
      }
      int f = 0;
  }
  </code></pre>
  
  <p>But it shouldn't. It would have to be like this to respect the ANSI C standard:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  void main(void)
  {
      int i;
      int f = 0;
      for (i = 0; i &lt; 10; i++)
      {
      }
  }
  </code></pre>
  
  <p>I would like the equivalent of the GCC options "<strong>-ansi</strong>" and "<strong>-Wpedantic</strong>".
  Is this even possible in VS?</p>