What will be the output of the following C# code snippet?
class Program
{
static void Main(string[] args)
{
String s1 = "one";
String s2 = string.Concat(s1 + " " + "two");
Console.WriteLine(s2);
Console.ReadLine();
}
}
class Program
{
static void Main(string[] args)
{
String s1 = "one";
String s2 = string.Concat(s1 + " " + "two");
Console.WriteLine(s2);
Console.ReadLine();
}
}A. one
B. two
C. one two
D. two one
Answer: Option C

Join The Discussion