开发者

Difference between unsigned and unsigned int in C

Could you please make it clear what开发者_运维技巧 the difference is between unsigned and unsigned int? Maybe some example code would be helpful.


unsigned is a modifier which can apply to any integral type (char, short, int, long, etc.) but on its own it is identical to 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.


They are exactly the same thing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜