+ 5
What are escape characters
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.
+ 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"
+ 1
Escape character let user print special char like * using \* inside string. Also some escape characters like \a gives audible alarm.
0
Amol Palshetkar what langiage is the alarm?