回复:计算机程序题

来源: 2007-12-20 23:59:43 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

int i=0;
while( !(n & 0x1)) {
n >>= 1;
i++;
}
n ^= 0x1;
while(i>0) n