In a local scope, local variables exist in the stack, while global variables are statically accessed, so they are different variables. How can they be equal?
Another special language about char is char *, which has special semantics in C/C++, which is different from both signed char * and unsigned char * and is specially used to refer to strings ending in' \0'.
Extended data:
Parameter number is the converted character code, and its value range is 0 ~ 255. char occupies one byte, that is, eight binary bits, but it indicates a sign type, so its value range is-128 ~127; Uchar stands for unsigned type, so the representation range is 0~255.
Integers and characters are interoperable. The essence of their storage in memory is the same, but the storage range is different. Integer can be 2 bytes, 4 bytes and 8 bytes, and the characters only take up 1 byte.