Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Do I have to convert the addition of two char into int first?
Do I have to convert the addition of two char into int first?
unnecessary. Because the char type is the same as integer data, char+char can be carried out directly. Both of them are binary operations in essence, and then display different results according to the type.

In the landlord's problem, the operation process is directly operated by the char type. Int and char are both basic types, and they are of the same level. No char is converted into int, so let's talk about it again, unless it is forced type conversion.