int、int_32t、int_64t
来源:互联网 发布:北京sql培训 编辑:程序博客网 时间:2024/06/08 14:02
转载自http://blog.sina.com.cn/s/blog_4b9eab320100sdex.html
32位平台:
char 1个字节8位
short 2个字节
int 4个字节
long 4个字节
long long 8个字节
float 4个字节
double 8个字节
指针 4个字节
64位平台:
char 1个字节
short 2个字节
int 4个字节
long 8个字节
long long 8个字节
float 4个字节
double 8个字节
指针 8个字节
因为long在不同的平台所占用的字节数不一样,为了保证平台的通用性,程序中尽量不要使用long数据库型。可以使用固定大小的数据类型宏定义:
typedef signed char int8_ttypedef short int int16_t;typedef int int32_t;# if __WORDSIZE == 64typedef long int int64_t;# else__extension__typedef long long int int64_t;#endif
阅读全文
0 0
- int、int_32t、int_64t
- int
- int?
- int ?
- int
- Int
- int?
- int*&、int&*
- int*&、int&*
- Int (*(*F)(int,int))(int)
- int (*func(int)) (int *,int)
- int; int*; int&区别
- int (*a)(int) ; int (*a[10])(int); int *(*a)(int) ;
- typedef int (* func)(int ,int )
- (int) &、(int)、(int &)的区别
- typedef int (* func)(int ,int )
- pair<int, int> set<pair<int, int>>
- int socket(int,int,int)详解
- omnet++ 分配信道的问题
- 策略设计模式
- 《Python核心编程(第2版)》读书笔记(6)之用列表模拟堆栈(关键词:Python/列表/堆栈/stack.py)
- CS231n学习笔记--4.Backpropagation and Neural Networks
- Java并发工具包使用指南(全)
- int、int_32t、int_64t
- Aizu 2304 Reverse Roads 费用流
- 数据结构上机实践第二周项目2- 程序的多文件组织
- 以太网帧格式
- 正则表达式 分组
- MySQL 存储引擎(MyISAM、InnoDB、NDBCluster)
- map 按key和value排序
- Mybatis 之 构造Mapper (MapperProxy)
- java代理模式详解(动态代理)