> 文章列表 > 用unsigned int定义的数据,其取值范围

用unsigned int定义的数据,其取值范围

用unsigned int定义的数据,其取值范围

关于用unsigned int定义的数据,其取值范围这个很多人还不知道,今天小六来为大家解答以上的问题,现在让我们一起来看看吧!

1、2个字节16位每位有0和1两种可能。

2、可以表示2的16次方个数值所以unsigned int 的取值范围就是0到2的16次方减1即0~~65535。

本文到此分享完毕,希望对大家有所帮助。