C++数据类型
来源:互联网 发布:nginx 子域名跨域配置 编辑:程序博客网 时间:2024/06/03 22:07
int main()
{
cout<<"int:"<<sizeof(int)<<endl;
cout<<"short:"<<sizeof(short)<<endl;
cout<<"long:"<<sizeof(long)<<endl;
unsigned long a;
cout<<"unsigned int:"<<sizeof(unsignedint)<<endl;
cout<<"unsigned long:"<<sizeof(unsignedlong)<<endl;
return 0;
}
无符号整型不能存储负数。
计算中中存储的是补吗,需要按位取反末位加一。
0 0
- C 数据类型
- C 数据类型
- c--数据类型
- C 数据类型
- C---数据类型
- c--数据类型
- 数据类型(C#)
- C#-数据类型
- C数据类型
- C数据类型
- C#--数据类型
- C数据类型
- C++:数据类型
- 【C#】数据类型
- C数据类型
- C 数据类型
- c数据类型
- C 数据类型
- druid 应用到项目中
- Oracle字符,数值等操作
- Python运行报错IndentationError: unindent does not match any outer indentation level
- Concurrent包中Queue(1)----LinkedBlockingQueue
- 坑爹的不受限字符串函数
- C++数据类型
- Activity传递对象的方法《转载》
- 数组名与数组名取地址的差异
- In-memory Computing with SAP HANA读书笔记 - 第三章:Software components and data replication methods
- android 慎用drawable中大图,造成内存溢出的解决方案
- EventBus使用详解(一)——初步使用EventBus
- [swift学习之九]异常处理
- mac Homebrew
- [SCU 4504] 奶牛合影 (最小表示法)