问题详情

答题翼 > 问答 > 求职面试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

int Calc(unsigned int x) { int count=0; while(x) { printf("x=%i ",x); count++


int Calc(unsigned int x)

{

int count=0;

while(x)

{

printf("x=%i ",x);

count++;

x=x&(x-1);

}

return count;

}

问 Calc(9999)的值是多少。

请帮忙给出正确答案和分析,谢谢!

参考答案
答案整理中……
您可能感兴趣的试题