32位类型(int、long等)右移(>>)32位
来源:互联网 发布:淘宝店铺招牌是哪个 编辑:程序博客网 时间:2024/06/13 11:44
思考
int i = 512;
cout << (i >> 32); // 512 (为什么是512,不是0么)
右移操作
在C99中,对右移有这样的规定:
If the value of the right operand is negative or is greater than or equal to the width of the promoted left operand, the behavior is undefined.
也就是说,对于右移大于或等于位宽的操作,或者右移负数的操作,其结果将依赖于编译器的处理和硬件指令的处理,并不唯一。
0 0
- 32位类型(int、long等)右移(>>)32位
- short int,int,unsigned int,long,long int,float,double等32位,64位各占几个字节的问题
- 32和64位系统占的字节(int char long double 指针等)
- 16位 32位 64位下 int double short long char 等占用的字节数是多少?
- 32位 64位下 int double short boolean long 指针 char 等占用的字节数是多少?
- 32位系统中short、short int、int、long int、long、long long所表示数值的范围
- int型数无符号(>>>)右移大于等于32位 i>>>32分析
- java 把64位long,转成2个32位的Int,再回转成long
- unsigned char,short,int ,long在16位32位和64位机器的长度
- unsigned char,short,int ,long在16位32位和64位机器的长度
- unsigned char,short,int ,long在16位32位和64位机器的长度
- 32/64位系统int、long。。。所占字节
- 反转一个32位 int 类型整数
- 要特别注意数据是否溢出,另外,int是16位,long是32位,而long long才是64位int
- 32位int和64位int
- Java 位运算 64位long数据 转成2个 32位 int数据 及 回加成原数据
- 右移 32 位怎么没变化?
- 【讨论】8位16位32位等内建类型数据操作的比较
- NSScanner类的基本用法
- Duilib 入门
- 5.1.1. Using Lists as Stacks(像栈一样)
- Linux 线程操作函数技能总结
- 设置UISearchBar的背景颜色
- 32位类型(int、long等)右移(>>)32位
- linux screen 命令详解
- tools:context的作用
- 我所理解的大学学习与创业
- java源码分析之HashSet和LinkedHashSet
- 优化eclipse启动项
- Understanding and Diagnosing ORA-00600 [12333] / ORA-3137 [12333] Errors (文档 ID 389713.1)
- ios FMDB数据库
- bug系列-------sn序列号在烧img之后被损坏