Is wchar_t needed for unicode support?

前端 未结 8 1439
情书的邮戳
情书的邮戳 2020-12-01 03:49

Is the wchar_t type required for unicode support? If not then what\'s the point of this multibyte type? Why would you use wchar_t when you could accomplish the

8条回答
  •  渐次进展
    2020-12-01 04:22

    char is generally a single byte. (sizeof(char) must be equal to 1).

    wchar_t was added to the language specifically to suppose multibyte characters.

提交回复
热议问题