Detect set bits
Posted on 2004-04-14
I need to determine if bits 0, 1, 10 and 11 are set
in unsigned short that is passed to me.
I wrote the code, but there's no way for me to test!
Need to make sure I'm getting it right.
Value passed to me will something like 3515, or so I was told.
Plz help, urgent.