title: Why hasn't my variable changed after applying a bit-shift operator to it?
body: <pre><code>int main()
  {
      int i=3;
      (i &lt;&lt; 1);
      cout &lt;&lt; i; //Prints 3
  }
  </code></pre>
  
  <p>I expected to get 6 because of shifting left one bit. Why does it not work?</p>