Examveda

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();
}

A. Hello c Sharp

B. HellocSharp

C. Compile time error

D. Hello

Answer: Option A


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp