int lowBit(int t) {
   
return t & (t ^ (t - 1));
}

int lowBit(int t) {
    
return t & (-t) ;
}

how do these functions work to get the lowest bit?

to be written..



 posted on 2008-02-03 16:49  ziliang  阅读(424)  评论(0)    收藏  举报