Timeline for What does "(int) value & 0x1, (int) value & 0x2, (int) value & 0x4, (int) value & 0x8" mean?"
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 2, 2014 at 11:29 | history | edited | ratchet freak | CC BY-SA 3.0 |
added 34 characters in body
|
Jul 2, 2014 at 11:25 | comment | added | ratchet freak | @Sjoerd that's why I said "powers of 2" | |
Jul 2, 2014 at 11:13 | comment | added | Sjoerd |
The wording may suggest that it can be extended to all numbers, which is not true: 8/6 is odd, while 8&6 yields false.
|
|
Jul 2, 2014 at 10:51 | history | answered | ratchet freak | CC BY-SA 3.0 |