+ 2

What is the meaning of escape sequence

Kindly explain

5th Jan 2021, 2:53 PM
S. V. Shivaani
S. V. Shivaani - avatar
4 odpowiedzi
+ 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, |
5th Jan 2021, 3:01 PM
Ore
Ore - avatar
+ 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
5th Jan 2021, 2:59 PM
noteve
noteve - avatar
+ 3
Ayush Kumar 《 Nicko12 》 Ore thank u so much guys
6th Jan 2021, 6:23 AM
S. V. Shivaani
S. V. Shivaani - avatar