title: Changing switch variable inside a case
body: <p>In the following code:</p>
  
  <pre><code>int i = 0;
  
  switch(i)
  {
      case 0:
          cout &lt;&lt; "In 0" &lt;&lt; endl;
          i = 1;
          break;
      case 1:
          cout &lt;&lt; "In 1" &lt;&lt; endl;
          break;
  }
  </code></pre>
  
  <p>What will happen? Will it invoke undefined behavior?</p>