Q. What will be the output of the following C# code?
Code:
using System;
class Program {
static void Main(string[] args) {
String s1 = "Hello";
String s2 = "IncludeHelp";
String s3 = s1;
Console.WriteLine(s1.Equals(s3) + " " + s2.CompareTo(s1));
}
}
β
Correct Answer: (D)
True 1