Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - On the assignment of characters and integers
On the assignment of characters and integers
An integer character takes up two bytes in memory, which means there are two bytes in memory to store an integer character. But now a character type is put in, which was originally only one byte in size, so only the first byte is pressed in, and the second byte is filled with 0, (one byte takes up eight bits in memory, so the ASCII code you said is put in the lower eight bits of the integer.

, the high eight digits make up 0)