title: Left bit shift operation in C
body: <p>I'm trying to shift the variable 'a' that has a value 1111 and shift it to the left so I could get 1110 meaning it should print the number 14. However, it is printing 30. I'm thinking that because it is shifting but it doesn't take the most left bit out (11110) but it should have been 1110. Here is my code. Thank you. </p>
  
  <pre><code>int main(int argc, char *argv[]) {
  unsigned a;
  a=0xF;
  a=a&lt;&lt;1; 
  printf(": %u\n",a);
  </code></pre>