Unsigned Integer Multiple Syntax

165 Views Asked by At

I am new to c++ and was wondering if there is a difference between uint32_t and tUInt32 ? Is it just syntactic sugar ? Or is it just a result of using namespace std;?

I know what they represent (see: https://www.badprog.com/c-type-what-are-uint8-t-uint16-t-uint32-t-and-uint64-t ). I am simply confused why two different ways to represent them exist and which to use.

Although I have searched SO with uint32_t and tUInt32, I hope this is not a duplicate.

Thank you for your time.

1

There are 1 best solutions below

3
On BEST ANSWER

tUInt32 doesn't seem to be standard. I found a reference to it here in the Symbian OS docs, which defines it as a typedef of unsigned long int, which is not guaranteed to be the same as uint32_t (uint32_t is guaranteed to be 32 bits, whereas unsigned long int is not in general - Symbian may guarantee it is 32 bits, but I can't find a reference for this).