title: Finding trailing 0s in a binary number
body: <p>How to find number of trailing 0s in a binary number?Based on K&amp;R bitcount example of finding 1s in a binary number i modified it a bit to find the trailing 0s.</p>
  
  <pre><code>int bitcount(unsigned x)
  {
    int b;
    for(b=0;x!=0;x&gt;&gt;=1)
        {
          if(x&amp;01)
            break;
          else
            b++;
        }
  </code></pre>
  
  <p>I would like to review this method.</p>