"Hellow"+" john". Is it true coding in c++?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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..!!

1st Jan 2017, 4:06 PM
Infinite_cruiser3
Infinite_cruiser3 - avatar
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; }
1st Jan 2017, 4:52 PM
Hatsy Rei
Hatsy Rei - avatar
0
ohhh...!!thanku means this is simple concatenation b/w strings...
1st Jan 2017, 5:21 PM
Infinite_cruiser3
Infinite_cruiser3 - avatar
0
ohhh...!!thanku means this is simple concatenation b/w strings...
1st Jan 2017, 5:21 PM
Infinite_cruiser3
Infinite_cruiser3 - avatar