Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int bitcheck(int test){
- int result = 0, unit = 0, i;
- for (i = 0; i < 8; i++){
- unit = test >> i & 1;
- result |= unit << (8 - i - 1) + result;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement