String in Swift3

How to define string variable

Escape Characters

\\ => If you want to show back slash

Output
Hello \World

\t => Shows the tab

Output
Hello World

\n => show new line
\” => shows double quote
\’”=> shows single quote

Joining two strings

Get the length of String

Output
Length of the string : 9

Leave a Reply

Your email address will not be published. Required fields are marked *