title: What is the purpose of anonymous { } blocks in C style languages?
body: <p>What is the purpose of anonymous { } blocks in C style languages (C, C++, C#)</p>
  
  <p>Example -</p>
  
  <pre><code>
  
  void function()
  {
  
    {
      int i = 0;
      i = i + 1;
    }
  
    {
      int k = 0;
      k = k + 1;
    }
  
  }
  
  </code></pre>
  
  <p><strong>Edit</strong> - Thanks for all of the excellent answers!</p>