Chinaunix首页 | 论坛 | 博客
  • 博客访问: 387365
  • 博文数量: 61
  • 博客积分: 1546
  • 博客等级: 中尉
  • 技术积分: 708
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-22 20:07
文章分类

全部博文(61)

文章存档

2011年(61)

分类: C/C++

2011-06-07 21:13:40

An integer might be two bytes on one machine and four on another,but on either computer it is always the same, day
in and day out.

A short integer is two bytes on most computers, whereas a long integer is usually four bytes, and an integer can be 
either of two or four bytes.

The size of an integer is determined by the processor(16bit,32bit or 64 bit) and the compiler you use. On a 32-bit
computer with an Intel Pentium processor, using modern compilers, integers are four bytes.

A char variable is most often one byte long.

signed and unsigned:
whether signed or unsigned, are stored in the same amount of space.
For example, an unsigned short integer number range from 0 to 65535, a signed short range from -32768 to 32767.
阅读(1358) | 评论(0) | 转发(0) |
0

上一篇:开心

下一篇:C++ Size of Variable on your computer

给主人留下些什么吧!~~