0

What is a backslash for?

Won't the text be the same without the backslash(\)?

17th Sep 2016, 7:11 AM
XenRox
XenRox - avatar
4 Answers
+ 2
The backslash escape character turns special characters into string characters, and can also be used to insert other special characters in a string. \' single quote \" double quote \\ backslash \n new line \r carriage return \t tab \b backspace \f form feed
17th Sep 2016, 8:24 AM
Zen
Zen - avatar
+ 2
Backslash is used for escaping illegal characters like " and ', because without the backslash they can end a string and leave some of the text outside the quotes, what will cause errors.
17th Sep 2016, 7:16 AM
srflp
0
Zen got it down pretty straight forward
18th Sep 2016, 6:09 PM
Yokohama
Yokohama - avatar
0
Thanks For Your Answers!
20th Sep 2016, 2:15 PM
XenRox
XenRox - avatar