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

Thê Hy

New member
What will be the output of the following C# code?
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
 

Tìm kiếm

Back
Top