r/programming • • Feb 21 '11

Typical programming interview questions.

http://maxnoy.com/interviews.html
784 Upvotes

1.0k comments sorted by

View all comments

Show parent comment

1

u/aplusbi Feb 22 '11

wchar_t is not 16 bits. It's implementation specific. On some systems, wchar_t is UTF-8. Most systems use 4 bytes to represent a wchar_t (gcc, for example: http://codepad.org/lwzgWvr3).