+ 2
What is the meaning of escape sequence
Kindly explain
4 Answers
+ 6
An escape sequence is a sequence of characters that is translated to a single character when the string is parsed.
In all languages I have used, an escape sequence starts with a backward slash (\).
Examples include
\n => newline
\t => tab
\u007c => pipe symbol, |
+ 4
Escape sequence is used to escape characters from the string for it to be printed and also for special characters. We use backslash (\) to escape characters
See this code for quick examples.
Hope this helps.
https://code.sololearn.com/c7ag4F1oVIPD/?ref=app
+ 3