But unsigned char means unsigned, so the range of values is 0-65535, and the range of values is -32767-32768.
Short integer takes most significant bit as the sign bit, so the data range that can be represented is shorter than that of unsigned short integer.
Extended data:
1 and unsigned char are unsigned byte types, and the size of char type variables is usually 1 byte (1 byte =8 bits), which is an integer. There are two types of each type of integer: unsigned and signed.
2. In C language, short is a definition of integer variable family. For example, short I; ; Represents the variable I that defines a short integer.
The length depends on the number of bytes defined by different short programs of the program compiler. The short integer variable defined by the standard cannot be less than 16 bits, that is, two bytes.
Baidu Encyclopedia-unsigned characters
Baidu Encyclopedia-Short Story (C Language)