ios - (Swift) how to print "\" character in a string? -


i have tried print passes because it's escaped character. e.g output should follows.

\correct 

thanks in advance

for , future reference:

\0 – null character (that 0 after slash) \\ – backslash itself.  since backslash used escape other characters, needs special escape print itself. \t  – horizontal tab \n – line feed \r  – carriage return \”  – double quote.  since quotes denote string literal, necessary if want print one. \’  – single quote.  similar reason above. 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -