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.
Loading...
Related Quiz
- What is slicing in the context of object-oriented programming in C++?
- What is the primary difference between a C++ statement and a declaration?
- Alice has a configuration setting that can have five possible values. Instead of using a long if-else structure, what would be a more elegant and readable approach to process the configuration setting?
- What is the main advantage of using inline functions?
- What happens if an inline function is called inside a loop?