Also, be aware that strings will be terminated at the first whitespace. So string sOne = "String"
would be ok, but string sOne = "String String"
will only print "String"
# include <iostream>
usingnamespace std;
int main()
{
char *firstString = "I am the first string";//Gives you a warning(deprecated)
char secondString[] = "I am the second string";
char thirdString[30] = "I am the thid string";
constchar *fourthString = "I am the fouth string but special one you cannot change me";
string fifthString = "I am the fifth string of";
cout << firstString << endl;
cout << secondString << endl;
cout << thirdString << endl;
cout << fourthString << endl;
cout << fifthString << endl;
return 0;
}