Is wchar_t just a typedef of unsigned short?
问题 for example, does: wchar_t x; translate to: unsigned short x; 回答1: In short: in C may be in C++ no. Widely. C defines wchar_t as typedef but in Unix it is generally 4 bytes (so generally not short) and in Windows 2 so it may be short. Under C++ it is unique built-in type like char or int , so you can legally overload void foo(short x) and void foo(wchar_t x) 回答2: For anyone else who may come across this answer because function calls in your Visual Studio project won't link, despite both