+ 1
"Hellow"+" john". Is it true coding in c++??
I have done in my laptop,but it gives me an error... but acc. to "sololearn" theory , this is a legal statement..!!
3 Answers
+ 6
#include <iostream>
using namespace std;
int main()
{
string str1 = "Hellow";
string str2 = " John";
string str = str1 + str2;
cout << str << endl;
return 0;
}
0
ohhh...!!thanku means this is simple concatenation b/w strings...
0
ohhh...!!thanku means this is simple concatenation b/w strings...