定义unsigned int a;输入-1程序怎么处理
来源:百度知道 编辑:UC知道 时间:2024/05/11 01:43:27
编译应该不会过,
如果过的话。 a = 0x80000001
晕.这也问?
int a;
cin>>a;//-1
cout<<a;
0~4294967295
因此输出他总长的最大值
-1时
4294967295
-2时
4294967294
....
....
....
一次类推
定义unsigned int a;输入-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) 的溢出问题
c++中write(int, const void *, unsigned int)的返回值是什么意思?
initializing' : cannot convert from 'int *' to 'unsigned int *'
这是一个关于C语言的问题,赋值问题,如果unsigned int 是65535,那么int是多少