title: When can I omit curly braces in C?
body: <p>When can I omit curly braces in C? I've seen brace-less <code>return</code> statements before, such as</p>
  <pre><code>if (condition)
    return 5;
  </code></pre>
  <p>But this doesn't always seem to work for all statements, i.e., when declaring a method.</p>
  <p>Are the rules for brace omission the same as in Java?</p>