title: How can I determine to which C standard is this code compliant?
body: <p>In a C lab this uber simple code appears:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int suma (int a, int b)
  {
          return a+b;
  }
  
  int mult (int a, int b)
  {
          return a*b;
  }
  
  int main(void)
  {
          int a,b;
          printf ("Operando 1: ");
          scanf("%d",&amp;a);
          printf("Operando 2: ");
          scanf("%d",&amp;b);
          printf("%d+%d=%d\n",a,b,suma(a,b));
          printf("%d*%d=%d\n",a,b,mult(a,b));
          return 0; 
  }
  </code></pre>
  
  <p>by looking at the code I'm supposed to determine to which C standard it is compliant (ANSI, ISO or de facto K&amp;R). After reading <a href="http://en.wikipedia.org/wiki/Ansi_C" rel="nofollow noreferrer">this</a> and <a href="http://en.wikipedia.org/wiki/C_(programming_language)#ANSI_C_and_ISO_C" rel="nofollow noreferrer">this</a> I'm inclined to say that it's compliant to the three standards. Would that be correct? </p>