Could you please make it clear what the difference is between unsigned
and unsigned int
? Maybe some example code would be helpful.
unsigned
是一个修饰符,可以应用于任何整数类型( char
, short
, int
, long
等),但就其本身而言,它与unsigned int
相同。
There is no difference. unsigned
and unsigned int
are both synonyms for the same type (the unsigned version of the int
type).
unsigned
alone means unsigned int. You can also use unsigned char
, etc. I have no idea what happens if you try unsigned double
or unsigned float
. Anybody know?
unsigned indicates that it's unsigned int. So they are equivalent.
他们是完全一样的东西。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.