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.

Vaishnavi.K said:   1 decade ago
Compare the ASCII value of I and i.


Post your comments here:

Your comments will be displayed after verification.