Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to take the tenth bit value of integer value int a (the last bit in the right hand is the first bit) to judge whether it is 0 or 1?
How to take the tenth bit value of integer value int a (the last bit in the right hand is the first bit) to judge whether it is 0 or 1?
# include & ltstdio.h & gt

int? Master ()

{int? a;

scanf("%d ",& ampa);

Printf("%d "is% d \ n", a, (a&(1< & lt9))! =0);

Return? 0;

}