title: Usage of enclosing scope in C
body: <p>Are inner-scopes ever used in C, or is this similar to something like a <code>goto</code> statement that isn't used too much in production code? The only thing I can think of that might use it is making something volatile temporarily, for example:</p>
  <pre><code>int main(void) 
  { 
      int a=1; 
      const int b=4; 
      printf(&quot;a=%d, b=%d\n&quot;, a, b); 
      { 
          int b=5; 
          printf(&quot;a=%d, b=%d\n&quot;, a, b); 
      } 
  }
  </code></pre>
  <p>But that seems like a pretty non-practical example. How would these be used in practice?</p>