I've seen this in several programs, but haven't seen it explained anywhere. So what is it? I've also seen the uint16_t, so I'm guessing its something to do with 32 bits, 16 bits, 8 bits etc.
The leading u says that the type is unsigned.
The int says that the value is integer (not necessarily an int, though).
The value defines the number of bits used to store the value.
The _t says that the sizes are standard across all platforms.
The size of an int depends on the hardware and software being used. The size of a uint16_t is ALWAYS 16 bits.
3 Likes
Thanks for the info.