Search found 1 match
- Fri Jan 02, 2009 2:33 pm
- Forum: Challenges Solved
- Topic: bit test
- Replies: 13
- Views: 1182
Negative Values?
Hi, that's great hacking code. I didn't saw it before and it took me some minutes of flipping bits in my brain to solve it for positive x. But I'm still wondering why the parameter is 'int x' and not 'unsigned int x'. For negative numbers (and even x==0) things will become much more complicated and ...