How to print " cout<<"Hello World"; " ? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas
+ 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