可移植数据类型

stdint.h头文件 在stdint.h头文件中,定义了整型的4种类型别名。使用它们定义变量时,我们不必担心例如一个系统int类型占4个字节,而另一个系统int类型占2个字节而造成代码移植后不能使用的情况。 精准宽度类型别名 最小宽度类型别名 最快宽度类型别名 最大数据类型别名 inttypes.h inttypes.h中定义了stdint.h中类型别名对应的转换说明。
相关文章
相关标签/搜索