• Top Posts

    What is an Escape Sequence? Name some String escape sequences in C# ?


    • 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:
    1. \n – Newline character
    2. \b – Backspace
    3. \\ – Backslash
    4. \’ – Single quote
    5. \’’ – Double Quote

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728