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 -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -