http://www.csdn.net/ http://www.arm.com/zh/ https://www.kernel.org/ http://www.linuxpk.com/ http://www.51develop.net/ http://linux.chinaitlab.com/ http://www.embeddedlinux.org.cn http://bbs.pediy.com/
分类: C/C++
2012-12-14 16:36:57
测试代码:
#include
int main(void)
{
int n = 0;
int i = 0;
i = 0x00ffffff;
n = i>>16+3;
printf("i = 0x%x\n",i);
printf("n = i>>16+3\n");
printf("n = 0x%x\n",n);
n = (i>>16)+3;
printf("\nn = (i>>16)+3\n");
printf("n = 0x%x\n",n);
return 0;
}
结果: