Which data type is most suitable for storing a character in C++?
- Char
- Float
- Int
- String
The 'char' data type is most suitable for storing a single character in C++. It can hold characters like 'A', 'B', '1', '$', etc.
Loading...
Related Quiz
- Can a friend function be a member function of another class?
- The concept where the function's return type is deduced from its return statements in C++11 is called ______.
- What is the potential risk of using exception specifications like throw(type)?
- How does operator precedence affect the evaluation of complex expressions in C++?
- How does C++ handle the virtual table in a multiple-inheritance scenario?