已知:unsigned int x=65535,则执行以下语句输出的是
来源:百度知道 编辑:UC知道 时间:2024/06/30 22:53:46
printf("%d\n",x);
为什么是-1? 麻烦在解释下,unsigned int x=65535什么意思?
为什么是-1? 麻烦在解释下,unsigned int x=65535什么意思?
unsigned int的取值范围是0-65535
但是输出的时候,确实按照signed int输出的...
signed int的取值范围是-32768到32767,65535无法显示....
在Unsigned int中,65535的补码是1111 1111 1111 1111
对于Signed int来说,上面的补码是-1,所以显示的就是-1啦...
unsigned 与int哪个好?
srand((int)getpid());srand((unsigned) time(&t));
unsigned int a=2;int b = -3;
编写具有如下原型的函数:int f(unsigned long x, int n, int& Lxn);
C语言什么时候会用到short int,unsigned int还有long int呢
有关void * malloc (unsigned int size) 的溢出问题
定义unsigned int a;输入-1程序怎么处理
c++中write(int, const void *, unsigned int)的返回值是什么意思?
initializing' : cannot convert from 'int *' to 'unsigned int *'
这是一个关于C语言的问题,赋值问题,如果unsigned int 是65535,那么int是多少