MOH*_*MED 0 c long-integer
我有以下代码
long x; scanf("%ld",&x) if(x==-1) // does this comparison is allowed printf("just test\n");
它long的参数需要比较之前的任何铸造?
long
Kir*_*rov 7
-1是小数int.有一个从隐式转换(促销)int到long,所以-1自动"铸造"来long.
-1
int
此外,双方-1并x签署类型.不需要任何额外的演员阵容.
x
归档时间:
13 年,5 月 前
查看次数:
724 次
最近记录: