c++ int 、long int、long long、short int取值范围
2019-03-28 22:09
134 查看
写程序老是忘记这几个范围,有次没考虑范围用int报错了,写在这记一下
类型 | 存储字节 | 表示范围 |
int / long int | 4 | -2147483648~2147483647 大概10^9 |
long long | 8 | -9223372036854775808~+9223372036854775807 大概10^19 |
short int | 2 | -32768~+32767 大概10^4 |
相关文章推荐
- Java中byte、short、int、long、float、double的取值范围
- java整型byte,short,int,long取值范围大小
- java中byte、short、int、long、float、double类型的取值范围
- 32位系统中short、short int、int、long int、long、long long所表示数值的范围
- java中short、int、long、float、double取值范围
- C语言中基本类型char、short、int、long等类型的取值范围
- 打印分别由signed和unsigned限定的char , short, int ,与long类型变量的取值范围。
- java整型byte,short,int,long取值范围大小
- Windows下的char,short,int,long数值取值范围
- C++中数据类型int, short, long, long long的数据范围
- Java笔记19 - java中short、int、long、float、double取值范围
- 【c++】int\long\long long\double 等取值范围与详解
- 练习2-1 编写一个程序以确定分别由signed及unsigend限定的char short int 与long类型变量的取值范围
- 编写一个程序,分别以signed和unsigned限定的char、short、int与long类型的变量取值范围
- C# 与数据库中字段类型 Int16(short), Int32(int), Int64(long)的取值范围、区别 。string长度
- 编写一个程序以确定分别由signed及unsigned限定的char、short、int及long类型变量的取值范围。采用打印标准头文件中的相应值以及直接计算两种方式实现
- char,short,int ,long, long long 取值范围
- 请编写一个c程序确定signed,unsigned的char,short,int和long变量取值范围
- java整型byte,short,int,long取值范围大小
- java整型byte,short,int,long取值范围大小