关于short s=1; s=s+1; 和short s=1; s+=1; |
[ 2008-5-28 8:53:00 | By: michelecindy ]
|
short s=1;
隐式类型转换可以从小到大自动转,即byte->short->int->long如果反过来会丢失精度,必须进行显示类型转换 |
关于short s=1; s=s+1; 和short s=1; s+=1; |
[ 2008-5-28 8:53:00 | By: michelecindy ]
|
short s=1;
隐式类型转换可以从小到大自动转,即byte->short->int->long如果反过来会丢失精度,必须进行显示类型转换 |