title: Why do I get an error if I didn't specify brackets in a function even if it's only one statement in C?
body: <p>In for-loops, while-loops, and if-statements allow me to not specify the brackets if I put only statement in it like so:</p>
  
  <pre><code>for (fahr = LOWER; fahr &lt;= UPPER; fahr = fahr + STEP)
      printf("%3d %6.1f\n", fahr, fahrToCelsius(fahr));
  </code></pre>
  
  <p>But if I do it in a function like so:</p>
  
  <pre><code>float fahrToCelsius(int fahr)
      return (5.0/9.0)*(fahr-32);
  </code></pre>
  
  <p>It gives me an error.</p>
  
  <p>Why can't I omit brackets in functions with only one statement?</p>