+ 5

How to print the symbol "\" .

print symbol

26th Mar 2017, 6:58 PM
Tanmoy Sau
Tanmoy Sau - avatar
3 Answers
+ 4
Use "\\" instead. The reason for this is that "\" is used for escape sequences, so when you try to print it by itself, it thinks you're trying to escape the following character.
26th Mar 2017, 7:03 PM
Squidy
Squidy - avatar
+ 3
Thanks
26th Mar 2017, 7:04 PM
Tanmoy Sau
Tanmoy Sau - avatar
0
"\\" you need to escape \ to print it.
26th Mar 2017, 8:04 PM
Logan New
Logan New - avatar