Can a Chinese character be stored in a char type variable? why?

The char type variable is used to store Unicode-encoded characters. The unicode coded character set contains Chinese characters, so of course, Chinese characters can be stored in the char type variable. However, if a particular Chinese character is not included in the unicode coded character set, then this char type variable cannot store this special Chinese character. Additional note: unicode encoding takes up two bytes, so a variable of type char also takes up two bytes.

Published 133 original articles · praised 85 · visits 7431

Guess you like

Origin blog.csdn.net/weixin_45151795/article/details/105682455