Data Types – Char & ASCII Value C++
The char data type in C++ is used to store a single character. It is typically represented as a single byte in memory.
You can also use the int() function to convert a char variable to its corresponding ASCII value. For example, the following code prints the ASCII value of the variable myChar: