一道笔试题
int func(x){
int countx = 0;
while(x)
{
countx ++;
x = x&(x-1);
}
return countx;
}
求x=9999时输出结果,请详细解答下,谢谢
2008-04-19 18:06
2008-04-19 18:26
2008-04-19 20:41
2008-04-19 21:27
2008-04-19 21:35
2008-04-19 21:37
2008-04-19 21:47