2
Reply

write a progam to concatanate two strings

sanjeet kumar

sanjeet kumar

15y
5.6k
0
Reply

    By using C# language it can be done by following methods

    string a="dsfdffdfdgd";

    string b="gdhshfdfghdfg";

    console.writeline(a+b);

    using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace stringCont { class Program { static void Main(string[] args) { string str1 = "Mahesh"; string str2 = "Chand"; Console.WriteLine("Before Concatentaion"); Console.WriteLine(str1); Console.WriteLine(str2); str1 += str2; Console.WriteLine("After Concatentaion"); Console.WriteLine(str1); Console.Read(); } } } Point to be noted 1. You can use operator + for this purpose 2. You can use += also. I have used += to solve your purpose. Happy Coding