Question: what is the difference between character and string in c plus plus?
Answer: A string is a class that contains a char array, but automatically manages it for you. ... C++ strings can contain embedded \0 characters, know their length without counting, are faster than heap-allocated char arrays for short texts and protect you from buffer overruns. Plus they're more readable and easier to use.