Difference between int32, int, int32_t, int8 and int8_t

后端 未结 3 1628
别那么骄傲
别那么骄傲 2020-12-07 08:49

I came across the data type int32_t in a C program recently. I know that it stores 32 bits, but don\'t int and int32 do the same?

3条回答
  •  情书的邮戳
    2020-12-07 09:25

    The _t data types are typedef types in the stdint.h header, while int is an in built fundamental data type. This make the _t available only if stdint.h exists. int on the other hand is guaranteed to exist.

提交回复
热议问题