C# Programming - Strings - Discussion

Discussion Forum : Strings - General Questions (Q.No. 13)
13.
Which of the following will be the correct output for the C#.NET code snippet given below?
String s1 = "Five Star";
String s2 = "FIVE STAR";
int c;
c = s1.CompareTo(s2);
Console.WriteLine(c);
0
1
2
-1
-2
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
11 comments Page 2 of 2.

Arvind said:   10 years ago
I think same @Soniya and my question is same to you?

Please any one give answer.


Post your comments here:

Your comments will be displayed after verification.