What is an Escape Sequence? Name some String escape sequences in C# ?
- n Escape sequence is denoted by a backslash (\). The backslash indicates that the character that follows it should be interpreted literally or it is a special character. An escape sequence is considered as a single character.
- String escape sequences are as follows:
- \n – Newline character
- \b – Backspace
- \\ – Backslash
- \’ – Single quote
- \’’ – Double Quote
No comments