求下面函数的返回值
int func(x)
{
int countx =0.o;
while(x)
{
countx ++;
x = x&(x-1);
}
return countx;
}
脑子是空的不要紧,主要是不要进水······
int func(x)
{
int countx =0.o;
while(x)
{
countx ++;
x = x&(x-1);
}
return countx;
}