title: Shift operation in C
body: <p>Is it possible to shift <code>0</code>s as you can shift <code>1</code>s in shifting operation in C?</p>
  
  <p>Something like this </p>
  
  <pre><code>for (i=0; i&lt;32; i++) {
      if (data &amp; 0x01) { 
          data |= (1&lt;&lt;i);
      }
      else { 
          data &amp;=~ (0&lt;&lt;i);
      }
  }
  </code></pre>
  
  <p>I'm checking if some bits are set and depending on that I'm storing <code>0</code>s or <code>1</code>s in new variable, shifting every bit to left.</p>