码迷,mamicode.com
首页 > 其他好文 > 详细

char/unsigned char/int/short 存储范围

时间:2018-12-13 15:00:24      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:ddl   width   存储   tor   text   ora   val   byte   order   

TypeStorage sizeValue range
char 1 byte -128 to 127 or 0 to 255
unsigned char 1 byte 0 to 255
signed char 1 byte -128 to 127
int 2 or 4 bytes -32,768 to 32,767 or -2,147,483,648 to 2,147,483,647
unsigned int 2 or 4 bytes 0 to 65,535 or 0 to 4,294,967,295
short 2 bytes -32,768 to 32,767
unsigned short 2 bytes 0 to 65,535
long 4 bytes -2,147,483,648 to 2,147,483,647
unsigned long 4 bytes 0 to 4,294,967,295

char/unsigned char/int/short 存储范围

标签:ddl   width   存储   tor   text   ora   val   byte   order   

原文地址:https://www.cnblogs.com/z45281625/p/10113898.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!