Character Data Type and Operations in C++
The char data type is used to store a single character. The literal value is stored within a set single quotes. Old style C strings were actually an array of chars, but now we have our own string data type. Even when we store a number in a char, it is the char value, not…