您的位置:首页 > 编程语言 > C语言/C++

C/C++中数据类型在不同平台下所占字节数

2017-11-23 10:29 155 查看
标准的32位的系统:

char 1个字节

short 2个字节

int 4个字节

long: 4个字节

float: 4个字节

double: 8个字节

long long: 8个字节

16位,32位,64位平台固定的

float:4个字节

double: 8个字节

跨平台运用

typedef signed char int8_t;

typedef short int16_t;

typedef int int32_t;

typedef long long int64_t;

typedef unsigned char uint8_t;

typedef unsigned short uint16_t;

typedef unsigned int uint32_t;

typedef unsigned long long uint64_t;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ffmpeg