左移
来源:互联网 发布:数据标注员 干嘛的 编辑:程序博客网 时间:2024/04/26 07:36
#include<stdio.h>
#include<stdlib.h>
int main(){
int j;
j = 1<<31;//it is ok, j = -2147483648, 32 bits long
j = 1<<32;//warning: left shift count >= width of type
printf("%d/n",j);
return 0;
}
that is to say, 32 is assigned of 32 bits.
Always aware the data types!
shift is fater than * and /
#include<stdlib.h>
int main(){
int j;
j = 1<<31;//it is ok, j = -2147483648, 32 bits long
j = 1<<32;//warning: left shift count >= width of type
printf("%d/n",j);
return 0;
}
that is to say, 32 is assigned of 32 bits.
Always aware the data types!
shift is fater than * and /
- 左移
- 左移
- 左移、右移
- 左移、右移
- 左移,右移
- 左移 & 右移
- 左移<<,右移>>
- 字符串循环左移
- 循环左移数组
- 循环左移数组
- 循环左移数组
- Gallery左移
- 循环左移字符串
- 数组循环左移
- 1. 循环左移
- 循环左移数组
- 循环左移字符串
- 字符串循环左移
- 如何用C#语言构造蜘蛛程序
- SQL之inner join/left join/right join
- Bullseye on Google: Hackers expose holes in GMail, Blogspot, Search Appliance
- 程序员喝酒文化[转]
- 我赛 密码丢失
- 左移
- 常量级 线性级
- 6成大学生找工作看走眼
- Net Remoting基础篇
- 无法打开用户默认数据库 登录失败
- 社会工程学入侵实战技术分析(图)
- 能把软件项目变成噩梦的三件事
- 千万别入错行 导师送给我的15条人生建议
- 正确地做事与做正确的事同样重要