c试题-假设 x = 9999,求下面函数的返回值

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

网友评论0