c++ - unsigned short int 和 unsigned int 或 unsigned short 之间有什么区别?

标签 c++ int unsigned short

根据:http://en.wikipedia.org/wiki/C_data_types您可以使用 unsigned short 类型或 unsigned short int 类型。但是它们之间有什么区别呢?我知道什么是 unsigned short 我知道什么是 unsigned int 但 unsigned short int 是什么意思?它是短的还是整型的?

最佳答案

unsigned shortunsigned short int 指的是完全相同的数据类型并且可以互换。

关于c++ - unsigned short int 和 unsigned int 或 unsigned short 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26983568/

相关文章:

c++ - 有效地将 unsigned short 转换为 char*

c++ - 为什么-1 > sizeof(int)?

c++ - 数组声明为 unsigned char 时的垃圾值

C++ - 从整数数组中插入和提取字符

c++ - Eigen bool 数组切片

c++ - 在 C++ 中给定迭代器调整 vector 大小

c++ - Code::Blocks 中另一个项目对 func 的 undefined reference

C# - 如何在此代码上创建非数字异常?

mysql - 为什么 mysql explain show using index prefer bigint column than int column

python - 混合 C++ 和 Python 的项目的目录结构