image.png
默認轉(zhuǎn)換(小的轉(zhuǎn)大的):
byte b=1;
int i=b;
float f=1;
double d=f;
顯示轉(zhuǎn)換(大的轉(zhuǎn)小的):
b=(byte)i ;
f= (float)d;
默認轉(zhuǎn)換(小的轉(zhuǎn)大的):
byte b=1;
int i=b;
float f=1;
double d=f;
顯示轉(zhuǎn)換(大的轉(zhuǎn)小的):
b=(byte)i ;
f= (float)d;