Assuming no compilation errors in the following code, What is the value of x ?
string s = "XYZ";
string s1 = "xyz";
int x=string.Compare(s, s1);
None of the above
String.Compare(string strA, string strB)
Compares the string referred to by strA with strB. Returns greater than zero if strA is greater than strB, less than zero if strA is less than strB, and zero if strA and strB are equal. The comparison is case- and culture-sensitive.
Back To Top