C++ – Why is it called ‘wchar_t’ and not simply ‘wchar’

cterminology

I've often wondered why C++ went with the name wchar_t instead of simply wchar, and I've never been able to find an answer. Search engines are no help because they think I'm asking about Windows' WCHAR type. Any ideas?

Best Answer

That's a legacy from C, where wchar_t is a typedef, and typedefs have that suffix in the C Standard Library.