What is a String and String literal in Swift?

String is a series of characters such as , “Swift” , “Learning Swift is fun !!!” that forms a collection. We can create strings using either String literal or string Interpolation. String literal is a collection of characters enclosed inside quotes.

 

Leave a Reply