where N can be char, short int , int , or long int. In addition, it is guaranteed that a char has at least 8 bits, a short at least 16 bits, and a long at least 32 bits. A char can hold a character of the machine’s character set.
Types and Declarations(Chapter 4 of The C++ Programming Language)
转载 1 = sizeof(char) <= sizeof(short) <= sizeof(int) <= sizeof(long)
1 <= sizeof(bool) <= sizeof(long)
sizeof(char) <= sizeof(wchar_t) <= sizeof(long)
sizeof(float) <= sizeof(double) <= sizeof(long double)
sizeof(N) = sizeof(signed N) = sizeof(unsigned N)
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:Expressions and Statements(Chapter 6 of The C++ Programming Language)
下一篇:A Tour of the Standard Library(Chapter 3 of The C++ Programming Language)
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章