Mega Code Archive

 
Categories / C# Tutorial / String
 

String Literal Escape Characters

Character                Meaning in Life \'                       Inserts a single quote. \"                       Inserts a double quote. \\                       Inserts a backslash into a string literal.  \a                       Triggers a system alert (beep).  \n                       Inserts a new line (on Win32 platforms). \r                       Inserts a carriage return. \t                       Inserts a horizontal tab into the string literal.