Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
    String a = "Ilove";
    String b = "CSHARP";
    b = string.Concat(a, '  ', b);
    Console.WriteLine(b);
    Console.ReadLine();
}

A. IloveCSHARP

B. I loveCSHARP

C. Ilove

D. Ilove CSHARP

Answer: Option D


Join The Discussion

Related Questions on Arrays and Strings in C Sharp