问题
In C, is there a difference between unsigned
as a type directly and unsigned int
?
Update: This is a duplicate of this question, but the other question didn't answer about small subleties that can exist. Thanks @EOF for pointing out the implementation defined behavior in bitfields.
回答1:
No, unsigned
and unsigned int
both refer to the same type. See cppreference/fundamental types:
来源:https://stackoverflow.com/questions/42024075/is-there-a-difference-between-unsigned-and-unsigned-int