Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Strings
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
Show Answer
Correct Answer:
-1
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment