What will be the output of the following C# code snippet?
static void Main(string[] args)
{
string s1 = "Hello" + "c" + "Sharp";
Console.WriteLine(s1);
Console.ReadLine();
}
static void Main(string[] args)
{
string s1 = "Hello" + "c" + "Sharp";
Console.WriteLine(s1);
Console.ReadLine();
}
A. Hello c Sharp
B. HellocSharp
C. Compile time error
D. Hello
Answer: Option A
Join The Discussion