Today I was learning some C++ basics and came to know about wchar_t. I was not able to figure out, why do we actually need this datatype, and how do I use it?>
wchar_t
The wchar_t data type is used to display wide characters that will occupy 16 bits. This datatype occupies "2 or 4" bytes.
wide characters that will occupy 16 bits
Mostly the wchar_t datatype is used when international languages like japanese are used.