首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Compute the difference between a value and 二's power

2012-12-20 
Compute the difference between a value and 2s power#include stdio.hint main(int argc, const char

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;}
?

热点排行