unsigned 和 unsigned int 之间有区别吗 [英] Is there a difference between unsigned and unsigned int

查看:75
本文介绍了unsigned 和 unsigned int 之间有区别吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C中,unsigned直接作为类型和unsigned int有区别吗?

更新:这是

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.

解决方案

No, unsigned and unsigned int both refer to the same type. See cppreference/fundamental types:

这篇关于unsigned 和 unsigned int 之间有区别吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆