28
Reply

What will be the output of the C#.NET code snippet given below?

Sandeep Soni

Sandeep Soni

6y
12.2k
6
Reply
  1. class SampleProgram
  2. {
  3. static void Main(string[] args)
  4. {
  5. string str = "Hello World!";
  6. Console.WriteLine(String.Compare(str, "Hello World?").GetType());
  7. }
  8. }

a) 0
b) 1
c) String
d) Hello World?
e) System.Int32