+ 2

How to print "hello world"(including double quote) in c++?

it's very easy to print a simple message but if i wanna print that message having double quote along with it, so how can i do that? please someone tell me!

12th Aug 2017, 5:59 AM
Akash Pandey
4 ответов
+ 7
By using the \ escape character. std::cout << "\"Hello World\"";
12th Aug 2017, 6:04 AM
Hatsy Rei
Hatsy Rei - avatar
12th Aug 2017, 6:03 AM
Jordan Chapman
Jordan Chapman - avatar
+ 2
printf("\"Hello World ! \"");
12th Aug 2017, 6:03 AM
Amar Dahake
0
cout<<"\"Hello World\"";
12th Aug 2017, 6:09 AM
KANHAYA TYAGI
KANHAYA TYAGI - avatar