Is there a difference between unsigned and unsigned int [duplicate]

六眼飞鱼酱① 提交于 2019-12-08 11:39:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!