Why (-7 << 16) | 75 has some extra bits?

前端 未结 0 1485
感情败类
感情败类 2021-01-31 19:37

I have a problem where some additional bits are being set in a number:

void print2_helper(int x) {
  int isodd = x%2 != 0;
  x /= 2;
  if (x)
    print2_helper(x)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题