赋值转换Assignment Conversions

在赋值操作中,赋值的类型将转换为接受赋值的变量的类型。In assignment operations, the type of the value being assigned is converted to the type of the variable that receives the assignment. 即使转换过程中会丢失信息,C 仍然允许在整型和浮点类型之间进行赋值转换。C allows conversions by assignment between integral and floating types, even if information is lost in the conversion. 使用的转换方法取决于赋值涉及的类型,如常用算术转换和下列各节中所述:The conversion method used depends on the types involved in the assignment, as described in Usual Arithmetic Conversions and in the following sections:

另请参阅See Also

类型转换Type Conversions