What are the escape sequences in C# programming?

 Posted by Goud.Kv on 9/3/2014 | Category: C# Interview questions | Views: 1307 | Points: 40
Answer:

These are the special characters which cannot be expressed literally. They start with backward clash (\).

In C#, we have so many escape sequences such as,
-For single quote, it is \'
-For double quotes, it is \"
-For backslash, it is \\
-For new line, it is \n
-For alert, it is \a
-For null, it is \0
-For form feed, it is \f
-For horizontal tab, it is \t
-For vertical tab, it is \v

Escape Sequences cannot be interpreted.


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response