title: Bit manipulation- for negative numbers
body: <p>Let the size of integer <strong><em>i=-5</em></strong> be 2 bytes. The <strong>signed bit</strong> value at the leftmost bit is '1'(which signifies that it is a negative number). 
  When i am trying to do a right shift operation, should i not expect the '1' at the 15th bit position to shift to 14th position? and give me a high but positive value?</p>
  
  <p>What i tried:<br></p>
  
  <pre><code>int i=5;
  i&gt;&gt;1 // giving me 2 (i understand this)
  
  int i=-5
  i&gt;&gt;1 // giving me -3 (mind=blown)
  </code></pre>