C++ notes for beginners(2)

作者:马 岩Furzoom) (http://www.cnblogs.com/furzoom/
版权声明:本文的版权归作者与博客园共同所有。转载时请在明显地方注明本文的详细链接,未经作者同意请不要删除此段声明,感谢您为保护知识产权做出的贡献。

Primitive Built-in Types

Type Implication Minimum  storage space
bool boolean NA
char character 8 bits
wchar_t wide character 16 bits
short short integer 16 bits
int integer 16 bits
long long integer 32 bits
float single-precision floating-point 6 significant digits
double double-precision floating-point 10 significant digits
long double extended-precision floating-point 10 significant digits

 

 

 

 

 

 

 

 

 

Integral types (except the boolean type) may be either signed or unsigned

Unlike other integral types, there are three distict types for char:

plain char equals to char

signed char

unsigned char

 

你可能感兴趣的:(inner)