码迷,mamicode.com
首页 > 其他好文 > 详细

求下面函数的返回值

时间:2015-03-13 22:11:17      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

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

求下面函数的返回值

标签:

原文地址:http://www.cnblogs.com/zzuyczhang/p/4336034.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!