There are two string operators. The first is the concatenation operator (‘.‘), which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator (‘.=‘), which appends the argument on the right side to the argument on the left side.
Input : string1: Hello string2 : World! Output : HelloWorld! Input : string1: geeksfor string2: geeks Output : geeksforgeeks
Code #2 :
Code #3 :
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.