+ 5

What are escape characters

8th Aug 2019, 9:34 AM
Hasith Reddy
Hasith Reddy - avatar
4 odpowiedzi
+ 5
Think of escape as escaping the charactors real meaning and giving it a special meaning. "n" on it's own is just a letter but if you put a \ in frount of it, it gets a special meaning to move the cursor to the next line.
8th Aug 2019, 9:44 AM
D_Stark
D_Stark - avatar
+ 3
\ is an escape character so it gives special meaning to characters following it, for example "\n" means new line. You can also use it to write, let's say, double quote in a double quoted string like this "double quote here:\" some more text here"
8th Aug 2019, 9:46 AM
Qermon
Qermon - avatar
+ 1
Escape character let user print special char like * using \* inside string. Also some escape characters like \a gives audible alarm.
8th Aug 2019, 5:47 PM
Amol Palshetkar
Amol Palshetkar - avatar
0
Amol Palshetkar what langiage is the alarm?
9th Aug 2019, 9:12 AM
Brave Tea
Brave Tea - avatar