title: Check if a binary number has a '0' or a '1' at a specific position
body: <p>I'd like to check if a binary number has a '0' or a '1' at a specific position.</p>
  
  <p>example:</p>
  
  <p>if the binary number is: 101000100</p>
  
  <ul>
  <li>checking at position zero (that is at
  the rightmost '0') should result in
  '0'.</li>
  <li>checking at position 2 should result
  in '1'.</li>
  <li>checking at position 3 should result
  in '0'.</li>
  <li><p>checking at position 6 should result
  in '1'.</p>
  
  <p>etc...</p></li>
  </ul>
  
  <p>I'm coding in C, so obviously I could use sprintf / scanf and the likes, but I guess there must be something better (read: more time efficient / easier)!</p>
  
  <p>What would be a good mechanism to do this?</p>