// \t Insert a tab.
// \n Insert a newline.
// \r Insert a carriage return.
// \' or ' Insert a single quote.
// \" Insert a double quote.
// \\ Insert a backslash character.
let str1 = "She said \"Hello!\" to me."
let str2 = #"She said "Hello!" to me."#
//str is "She said "Hello!" to me."
print("str1 is \"\(str1)\"")
print("str2 is \"\(str2)\"")
| The escaped special characters \0 (null character), \\ (backslash), \t (horizontal tab), \n (line feed), \r (carriage return), \" (double quotation mark) and \' (single quotation mark) |