0
What is escape sequence??
tell me the answer plz
1 Odpowiedź
+ 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).