Which of the following C++ data types is used to store a wide character?

  • char
  • int
  • short
  • wchar_t
The wchar_t data type in C++ is used to store wide characters. Wide characters are typically used to represent characters from extended character sets like Unicode. While char represents single-byte characters, wchar_t can hold multi-byte characters, making it suitable for wide character support.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *