Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C language. . Why can such an array be assigned 26 letters,' a'+ 1, and one character plus an integer?
C language. . Why can such an array be assigned 26 letters,' a'+ 1, and one character plus an integer?
In fact, shaping and personality types can be transformed into each other. When calculating' a'+ 1, the system will automatically convert' a' into an integer first, add 1, and then the result will be converted into a character type, because the character type is a little higher than the integer operation. Just as the result of the addition of integer and floating point number is a truth of floating point type!