How to print " cout<<"Hello World"; " ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

How to print " cout<<"Hello World"; " ?

This is a question and challenge at the same time! The question is to print cout<<"Hello World"; Not Hello World Upvote, yes?

30th Apr 2017, 1:54 PM
Rakki
Rakki - avatar
2 Réponses
+ 10
cout<<"cout<<\"Hello World\";";
30th Apr 2017, 1:56 PM
Hariharasubramanian
+ 4
cout << "cout << \" hello world\";"; because the " character must be escaped.
30th Apr 2017, 1:56 PM
Bebida Roja
Bebida Roja - avatar