Is there are a way to "escape" escape characters? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is there are a way to "escape" escape characters?

Is there a way so I don't have to write a second backslash to print a backslash in a string?

29th May 2017, 10:55 AM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
3 Answers
+ 6
using ascii value cout << char(92);
29th May 2017, 11:22 AM
Burey
Burey - avatar
+ 1
thanks :)
29th May 2017, 12:16 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
0
"\"
29th May 2017, 11:07 AM
Jaydev Shiroya
Jaydev Shiroya - avatar