+ 4

How do I print A message inside double quotation marks in c?

I mean I want to a print a message like : This is "Sololearn"(print Sololearn inside double quotation marks )

23rd Jul 2019, 11:36 PM
Md Ibrahim (West Bengal, India)
Md Ibrahim (West Bengal, India) - avatar
3 Answers
+ 7
You could use the \ character right before the " to have it appear within the string: "\"Sololearn\""
23rd Jul 2019, 11:52 PM
Faisal
Faisal - avatar
+ 4
You will need to escape but I don't mean run away.
24th Jul 2019, 4:15 AM
Sonic
Sonic - avatar
14th Jan 2020, 3:44 PM
silentlearner
silentlearner - avatar