Vidyalelo
C# Programming · Q94

Arrays and Strings in C Sharp

Programming · C# Programming · question 94

Q94

What will be the output of the following C# code? String a = "Csharp"; String b = "CSHARP"; int c; c = a.CompareTo(b); Console.WriteLine(c);

A.
0
B.
1
C.
-2
D.
-1
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board