求下面函数的返回值

int func(x)
{
    int countx =0.o;
    while(x)
    {
          countx ++;
          x = x&(x-1);
     }
    return countx;
}

脑子是空的不要紧,主要是不要进水······
原文地址:https://www.cnblogs.com/zzuyczhang/p/4336034.html