Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define IS_BIT_SET(n,x) ((n&(1<<x)!=0)?1:0)
- int main(){
- printf("%d n",IS_BIT_SET(8,3));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement