UINT32和uint32_t的区别 [英] Difference between uint32 and uint32_t
问题描述
可能重复:结果
<一href=\"http://stackoverflow.com/questions/11786113/difference-between-different-integer-types\">Difference不同的整数类型之间的
是什么在C / C ++?
What is the difference between uint32 and uint32_t in C/C++?
他们是依赖于操作系统的?
Are they OS dependent?
在这种情况下,我应该使用一个或另一个?
In which case should I use one or another?
感谢
推荐答案
uint32_t的
是标准的, UINT32
不是。也就是说,如果包括&LT; inttypes.h&GT;
或&LT; stdint.h&GT;
,你会得到一个的定义uint32_t的
。 UINT32
在一些地方code基的typedef,但你不应该指望它存在的,除非你自己定义。并定义它自己是一个坏主意。
uint32_t
is standard, uint32
is not. That is, if you include <inttypes.h>
or <stdint.h>
, you will get a definition of uint32_t
. uint32
is a typedef in some local code base, but you should not expect it to exist unless you define it yourself. And defining it yourself is a bad idea.
这篇关于UINT32和uint32_t的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!