How do you declare a string in C++?
The following declaration and initialization create a string consisting of the word “Hello”. To hold the null character at the end of the array, the size of the character array containing the string is one more than the number of characters in the word “Hello.” strcpy(s1, s2); Copies string s2 into string s1.
How do you declare a string?
The difference between a character array and a string is the string is terminated with a special character ‘