String concatenation program in swift language

String concatenation program in swift language. This means the two different strings were merged to a single word is concatenation. This program is to add two different set of words into a single word. This is a basic set of program in every programming language for beginners.

let Hstr = "Hello"
let Wstr = "world!"
var result = Hstr + Wstr
print(result)

Output:

Hello world!

What is string concatenation in swift language

By adding the second string to the right-hand end of the first string, the concatenation operators merge two strings into one. Concatenation can happen with or without a blank in between. Concatenation is the process of combining two strings together, and the symbol for concatenation in many programming languages is a plus ( + ). When you want to display a message that includes the value of a variable, you can use concatenation.