Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
    string s1 = "Hello" + " I " + "Love" + " ComputerScience ";
    Console.WriteLine(s1);
    Console.ReadLine();
}

A. HelloILoveComputerScience

B. Hello I Love ComputerScience

C. Compile time error

D. Hello

Answer: Option B


Join The Discussion

Related Questions on Arrays and Strings in C Sharp