C++ Character Data Types
Character Types
The char
data type is used to store a
single character. The character must be
surrounded by single quotes, like 'A' or 'c':
Alternatively, if you are familiar with ASCII, you can use ASCII values to display certain characters:
Tip: A list of all ASCII values can be found in our ASCII Table Reference.
Exercise?What is this?
Test your skills by answering a few questions about the topics of this page
Which data type is used to store a single character in C++?