C# program to concatenate two strings.
using System; class Example { static void Main() { string str1 = "Code"; string str2 ="Cry"; string str3=string.Concat(str1, str2); Console.WriteLine(str3); } }
CodeCry
The functionConcat()
concatenates the second string to the first string defined inside the paranthesis.
Comments :