cout << "This " << "is " << "awesome!"; | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

cout << "This " << "is " << "awesome!";

cout << "This " << "is " << "awesome!"; y u have to typing like this cout << "This is awesome!"; if i type like this will gonna be easier?

18th Apr 2018, 10:51 AM
suworawut siaosirikul
suworawut siaosirikul - avatar
3 Answers
+ 3
The second one is more readable and most people will just combine it into one string, so I would recommend it.
18th Apr 2018, 10:53 AM
Ariela
Ariela - avatar
+ 1
so this mean i can type the second right?
18th Apr 2018, 10:55 AM
suworawut siaosirikul
suworawut siaosirikul - avatar
+ 1
Yes
18th Apr 2018, 11:05 AM
Ariela
Ariela - avatar