Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. #define IS_BIT_SET(n,x) ((n&(1<<x)!=0)?1:0)
  2. int main(){
  3. printf("%d n",IS_BIT_SET(8,3));
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement