`
yaojingguo
  • 浏览: 202758 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Compute the difference between a value and 2's power

 
阅读更多

#include <stdio.h>

int main(int argc, const char *argv[]) {
  int base = 0xf0000000;
  // difference between base and 0x100000000
  int diff = -base;
  printf("%08x, %08x\n", base, diff);
  return 0;
}
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics