(E) data type conversion

Automatic conversion:

Right-hand side is smaller than the range defined by the scope of the left operand

int---long

float---double

long---float

 

Cast: require special formatting codes can not be done automatically

Format: Small small range of types of variable name = variable type originally a small range of large data

 

 

Guess you like

Origin www.cnblogs.com/huoyunxieshen/p/11139196.html