Can any one explain me the usage of wchar_t | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Can any one explain me the usage of wchar_t

i don't understand the usage of wchar_t data type

1st Oct 2018, 5:54 PM
khasimbabu shaik
khasimbabu shaik - avatar
2 Answers
+ 9
AFAIK wchar_t is used for storing unicode strings
1st Oct 2018, 8:10 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 3
Generally speaking, you should avoid wchar_t. To my knowledge, it was implemented before UTF-8 became the standard and is used for characters of length 16 bits.
1st Oct 2018, 5:58 PM
Division by Zero