Char array to string in C++

“char” data type or a character data type is used to store letters, unlike numbers and integers, which are stored in “int”, “double” and “float” or true-false value in “bool”.