0

What is escape sequence??

tell me the answer plz

9th Sep 2017, 6:35 PM
Shreshth
1 ответ
+ 5
It is a special character, usually '\', used before other character which are meaningful to neutralize their special meaning. For example, if you want to declare a string, you use double quotes - "This is a string". But if you want your string to contain double quotes as regular characters, you have to escape them. "I am: \"a true!\" sololearner." If you didn't escape them, the string would be: "I am: " and all characters after that would be ignored (or most likely would raise an exception).
9th Sep 2017, 6:39 PM
P R
P R - avatar