Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char a = 0xFF;
- for (int i = 0; i < 8; i++)
- {
- if ( (a & (1 << i)) == (1 << i))
- {
- //bit jest jedynką, zrób coś z nim
- }
- else
- {
- //jest zerem
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement