判断2进制 第n位 是否为1 (0)

int r = 10 >> 6;
//byte r1 = 1;
if ((r &1) == 1)
{
//为1
}else{
//为0
}
原文地址:https://www.cnblogs.com/z45281625/p/12124842.html