What does mean this strange string initialization? string s("aaa" "bbb"); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What does mean this strange string initialization? string s("aaa" "bbb");

2nd Mar 2017, 1:32 PM
Aleksander Ashkov
3 Answers
+ 2
It pretty much just joins the two strings as one. You could try it out in playground.
2nd Mar 2017, 1:37 PM
Norbivar
Norbivar - avatar
+ 1
Is it a general concatenation method?
2nd Mar 2017, 1:40 PM
Aleksander Ashkov
0
I don't know why but It looks like. My guess would because arguments are separated by a comma it's effectively one string, I guess.
5th Mar 2017, 4:06 PM
Norbivar
Norbivar - avatar